Skip to content

Console

Drew Wibbenmeyer edited this page Apr 20, 2022 · 3 revisions

This page covers the functionality of draxel-0's internal console command line interface.

call

call <script>.lua [<args>...]

call runs a "system" script relative to the current working directory. And passes the following arguments on to that script.

Example

> call hello.lua Dave
Hello, Dave!

cd

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.

Example

> cd
C:\Users\username\AppData\draxel-0\storage
> cd some_directory
C:\Users\username\AppData\draxel-0\storage\some_directory

cls

cls Clears the command line screen

del

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

dir shows contents of current working directory

Example

> dir
hello.pxly system_script.lua some_directory/

exit

exit Exits draxel-0

help

help displays a list of the commands supported by the command line

load

NOTE: Not yet implemented!

load <cart>.pxly

load loads a draxel-0 cartridge file for editing/running.

Example

> load hello.pxly
Loaded cartridge 'hello.pxly'

ls

ls is an alias for dir

md

md is an alias for mkdir.

mkdir

mkdir <dir>

mkdir creates a directory.

new

NOTE: Not yet implemented!

new loads a new, unsaved, cartridge into memory.

rm

rm is an alias for del.

run

NOTE: Not yet implemented!

run runs the currently loaded draxel-0 cartridge.

Example

> run
ERROR: No cartridge file loaded.
> load hello.pxly
Loaded cartridge 'hello.pxly'
> run
Running cartridge...

save

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.

unload

NOTE: Not yet implemented!

unload unloads the currently loaded cartridge from memory.

Clone this wiki locally