Skip to content

Latest commit

 

History

History
129 lines (92 loc) · 5.21 KB

README.chinese.md

File metadata and controls

129 lines (92 loc) · 5.21 KB

LuaConsole

All Contributors

License Codecov Gitter.im travis-ci Build status

English Spanish German Portuguese Russian Chinese

Paypal

LuaConsole 下一代跨平台[Lua-5.1.x,LuaJIT-2.0,Lua-5.2.x,Lua-5.3.x,Lua-5.4.x]支持的CLI取代了PUC-Lua和LuaJIT CLI

有关更多信息,请访问LuaConsole Github网站LuaConsole Wiki

目标

  • 比PUC-Lua/LuaJIT更好的CLI应用程序
  • 支持与PUC-Lua和LuaJIT兼容的所有内容
  • 防止混乱的代码
  • 依赖CLI且独立

构建源代码

Windows/Linux Build Instructions

与LuaRocks一起使用

LuaRocks Support

与LuaDIST一起使用

LuaDist Support Windows, Linux, MacOS

测试

Linux

# 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 -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>

Windows

REM Help command
luaw --help /? -?

REM REPL Mode
luaw
luaw -p

REM 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

REM With Windows Registry enhancements found below
res\testing.lua -Dtest=5 -n a b c
res\testing -Dtest=5 -n a b c

REM Using type
type res\testing.lua | luaw -Dtest=5 -n a b c -

REM 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

REM stdin
luaw -
dofile('res/testing.lua')
<Ctrl + z>
<Enter>

附加功能

Contributors ✨

Thanks goes to these wonderful people (emoji key):


DarkWiiPlayer

💻

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