-
Notifications
You must be signed in to change notification settings - Fork 0
Console
This page covers the functionality of draxel-0's internal console command line interface.
call <script>.lua [<args>...]
call
runs a "system" script relative to the current working directory. And passes the following arguments on to that script.
> call hello.lua Dave
Hello, Dave!
cd [<dir>|--reset|-r]
cd
Changes the current working directory.
If called without arguments outputs the current working directory.
If called with --reset
or -r
the current working directory is reset to the default.
> cd
C:\Users\username\AppData\draxel-0\storage
> cd some_directory
C:\Users\username\AppData\draxel-0\storage\some_directory
cls
Clears the command line screen
del <file>|(--dir|-d) <dir>
del
deletes a file by default.
If del
is called with --dir
or -d
it will delete a directory and all of its contents.
dir
shows contents of current working directory
> dir
hello.pxly system_script.lua some_directory/
exit
Exits draxel-0
help
displays a list of the commands supported by the command line
NOTE: Not yet implemented!
load <cart>.pxly
load
loads a draxel-0 cartridge file for editing/running.
> load hello.pxly
Loaded cartridge 'hello.pxly'
ls
is an alias for dir
md
is an alias for mkdir
.
mkdir <dir>
mkdir
creates a directory.
NOTE: Not yet implemented!
new
loads a new, unsaved, cartridge into memory.
rm
is an alias for del
.
NOTE: Not yet implemented!
run
runs the currently loaded draxel-0 cartridge.
> run
ERROR: No cartridge file loaded.
> load hello.pxly
Loaded cartridge 'hello.pxly'
> run
Running cartridge...
NOTE: Not yet implemented!
save [cartridge]
save
with arguments, saves the currently loaded cartridge to the indicated file.
save
without arguments, save the currently loaded cartridge to the file it was loaded from.
NOTE: Not yet implemented!
unload
unloads the currently loaded cartridge from memory.