adding shell commands - rowr111/cubegarden GitHub Wiki
Every shell command is self-contained in its own file.
If you would like to add your own shell command to the cubegarden code:
- create a file that will include the code for your command - it must be named in the format: cmd-*.c
- inside this file you must have:
#include "shellcfg.h"
<your code>
orchard_shell("commandname", commandFunction)
To remove a command: rename or delete the file and it will be automatically removed from the list of commands.