-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation
LAPCoder edited this page Mar 18, 2023
·
3 revisions
-
filename- Default:
output - Description: The name of the output compiled file.
- Default:
-
DEBUG- Default:
on - Description: SnabbGET is in debug mode?
on/off.
- Default:
-
arg- Default:
- Description: The arguments when you execute the compiled file with
makecommand.
- Default:
-
wasm- Default:
off - Description: Compile SnabbGET in WebAssembly with
em++(emsdk).on/off.
- Default:
-
pre_compileGenerate some file before the compilation. -
compileCompile SnabbGET. -
libsCompile the libs. -
runStart SnabbGET. -
guiINDEV. Compile the GUI (Java). -
runGuiINDEV. Run the GUI (Java).
The debug mode is used to print some outputs when debugging…
I (LAPCoder) don't use my IDE debugger…
To open SnabbGET after compiling, type:
./outputor if you want to use the Makefile:
make run # DEBUG=offmake run open gdb.
The CLI is quite simple to use:
$ ./output say hello
hello
$ ./output ls
myfile 1Ko
myfile2 3Mo OK. If you want all the commands with arguments up-to-date, type help in SnabbGET.
| Command | Description |
|---|---|
say, echo
|
Write something |
cd [<dir> | -p] |
Change/Print Directory |
exit |
Exit the shell |
help [--web] |
Show this message |
clear, cls
|
Clear the screen |
exe <command> |
Execute a command of your OS (e.g., gcc, ls, dir…). Use it the same way as start. |
ls |
List file and dirs in the current directory |
cp <file> <tofile> |
Copy a file or a dir to another file or a dir |
mv <file> <tofile> |
Move (or rename) a file or a dir to another dir |
mk [-d] <file> |
Create a file/dir |
rm <file> |
Remove a file |
calc <expression> |
Calculate a mathematical expression |