LuaConsole
| License | Codecov.io | Gitter.im | Travis-CI | Appveyor |
|---|---|---|---|---|
![]() |
https://github.com/tilkinsc/LuaConsole
A next-gen, Cross-Platform [Lua-5.1.x, LuaJIT-2.0, Lua-5.2.x, Lua5.3.x]-supporting CLI made to supersede PUC-Lua and LuaJIT interpreter
For more information, visit LuaConsole Github Website and the wiki!
Goals
- Be a better CLI application than PUC-Lua/LuaJIT
- Have low code-coverage to prevent redundancy being executed (0-30% pseudo-goal)
- Support everything compatible with PUC-Lua and LuaJIT
- Prevent messy, obfuscating code
- Be CLI dependant and independant
Building
Windows/Unix Build Instructions
Using with LuaRocks
Windows MinGW
Linux GCC
Mac GCC
Using with LuaDIST
Testing
# Help command
luaw --help /? -?
# REPL Mode
luaw
luaw -p
# From the command
luaw res/testing.lua -Dtest=5 -n a b c
luaw -lres/testing.lua -Dtest=5 -n a b c
luaw -Dtest=5 -n a b c - < res/testing.lua
# With Shebang enhancements found below
res/testing.lua | luaw -Dtest=5 -n a b c -
# Using cat
cat res/testing.lua | luaw -Dtest=5 -n a b c -
# From inside Lua
luaw -e "dofile('res/testing.lua')" -Dtest=5 -n a b c
luaw -e "dofile('testing.lua')" -s res -Dtest=5 -n a b c
# stdin:
luaw -
dofile('res/testing.lua')
<Ctrl + d>
<Enter>
# However, instead of the above two, use: (can neglect the implied -p)
luaw -pWindows Specific:
REM stdin
luaw -
dofile('res/testing.lua')
<Ctrl + z>
<Enter>
REM Using type
type res\testing.lua | luaw -Dtest=5 -n a b c -
REM With Windows Registry enchancements found below
res\testing.lua | luaw -Dtest=5 -n a b c -
res\testing | luaw -Dtest=5 -n a b c -Bonus
- Windows Bonus Flashy Icons and Ease of Open
- Linux Bonus Shebangs -- WIP, not yet made





