Example of shebang on Lua script
This commit is contained in:
3
client/luascripts/cmdline.lua
Normal file → Executable file
3
client/luascripts/cmdline.lua
Normal file → Executable file
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env -S pm3 -l
|
||||
|
||||
--[[
|
||||
A sampe script file on how to implement at cmd line inteface.
|
||||
It also demonstrates how the script can be used with a shebang.
|
||||
--]]
|
||||
|
||||
print("This is how a cmd-line interface could be implemented\nPrint 'exit' to exit.\n")
|
||||
|
||||
Reference in New Issue
Block a user