项目作者: tilkinsc

项目描述 :
A next-gen, Cross-Platform [Lua-5.1.x, LuaJIT-2.0, Lua-5.2.x, Lua-5.3.x, Lua-5.4.x]-supporting CLI made to supersede PUC-Lua and LuaJIT CLI
高级语言: C
项目地址: git://github.com/tilkinsc/LuaConsole.git
创建时间: 2017-05-01T23:51:43Z
项目社区:https://github.com/tilkinsc/LuaConsole

开源协议:MIT License

下载


LuaConsole

LuaConsole

All Contributors

License Codecov Gitter.im travis-ci Build status

English
Spanish
German
Portuguese
Russian
Chinese

Paypal

LuaConsole is a next-gen, Cross-Platform [Lua-5.1.x, LuaJIT-2.0, Lua-5.2.x, Lua-5.3.x, Lua-5.4.x]-supporting CLI made to supersede PUC-Lua and LuaJIT CLI

For more information, visit LuaConsole Github Website and the LuaConsole Github Wiki!

Goals

  • Be a better CLI application than PUC-Lua/LuaJIT
  • Support everything compatible with PUC-Lua and LuaJIT
  • Prevent messy, obfuscating code
  • Be CLI dependent and independent
  • Multiplatform - Linux, Windows, Mac (unofficial)

Building

Windows/Linux Build Instructions

Using with LuaRocks

LuaRocks Support

Using with LuaDIST

LuaDist Support Windows, Linux, MacOS

Testing

Linux

  1. # Help command
  2. luaw --help /? -?
  3. # REPL Mode
  4. luaw
  5. luaw -p
  6. # From the command
  7. luaw res/testing.lua -Dtest=5 -n a b c
  8. luaw -lres/testing.lua -Dtest=5 -n a b c
  9. luaw -Dtest=5 -n a b c - < res/testing.lua
  10. # With Shebang enhancements found below
  11. res/testing.lua -Dtest=5 -n a b c
  12. # Using cat
  13. cat res/testing.lua | luaw -Dtest=5 -n a b c -
  14. # From inside Lua
  15. luaw -e "dofile('res/testing.lua')" -Dtest=5 -n a b c
  16. luaw -e "dofile('testing.lua')" -s res -Dtest=5 -n a b c
  17. # stdin:
  18. luaw -
  19. dofile('res/testing.lua')
  20. <Ctrl + d>
  21. <Enter>

Windows

  1. REM Help command
  2. luaw --help /? -?
  3. REM REPL Mode
  4. luaw
  5. luaw -p
  6. REM From the command
  7. luaw res/testing.lua -Dtest=5 -n a b c
  8. luaw -lres/testing.lua -Dtest=5 -n a b c
  9. luaw -Dtest=5 -n a b c - < res/testing.lua
  10. REM With Windows Registry enhancements found below
  11. res\testing.lua -Dtest=5 -n a b c
  12. res\testing -Dtest=5 -n a b c
  13. REM Using type
  14. type res\testing.lua | luaw -Dtest=5 -n a b c -
  15. REM From inside Lua
  16. luaw -e "dofile('res/testing.lua')" -Dtest=5 -n a b c
  17. luaw -e "dofile('testing.lua')" -s res -Dtest=5 -n a b c
  18. REM stdin
  19. luaw -
  20. dofile('res/testing.lua')
  21. <Ctrl + z>
  22. <Enter>

Bonus

Contributors ✨

Thanks goes to these wonderful people (emoji key):








tilkinsc

💻 🖋 📖

DarkWiiPlayer

💻

Felix Lewandowski

🌍

This project follows the all-contributors specification. Contributions of any kind welcome!