Skip to main content

shellApi Documentation

shellApi - A simple analogue of shell API, tailored for lightshell​

/lightOS/lightshell.lus rewrites global _G.shell variable​

shellApi path variable​

you can set path to run programs from it path​

shell.setPath("/home/redbutton")

shellAPi change directory for user​

you can change directory for user​

shell.setDir("/")

shellApi run lua files​

you can run lua files​

shell.run("/apps/mycoolapp/app.lua")

See mini-shell doc in Docs/lightshell.md​