diff options
Diffstat (limited to '')
| -rw-r--r-- | .lush/scripts/example.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.lush/scripts/example.lua b/.lush/scripts/example.lua index 279ad5e..b2f2f2b 100644 --- a/.lush/scripts/example.lua +++ b/.lush/scripts/example.lua @@ -30,6 +30,11 @@ if lush.exec('echo "hello world"\n') then print("echo worked properly") end +-- debug mode can be used to log execution of commands +lush.debug(true) -- enters debug +lush.exec('echo "echo in debug mode"') +lush.debug(false) -- exits debug + -- getcwd returns the current working directory local cwd = lush.getcwd() print(cwd) |
