mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Add -o & -s switches and qr command
parent
197bc95af3
commit
de81cc6c4c
@ -9,6 +9,9 @@ One can also place the script anywhere on the SD (or any other drive, for that m
|
||||
|
||||
GodMode9 script resembles shell script. Comments are denoted by `#` and work anywhere. Variable are in the format `$[VAR]` where `VAR` is the name of the variable. (i.e. $[HAX]). Surround an argument with `"` if it must contain whitespaces. Any redundant whitespaces outside of `"` will be treated as a single whitespace.
|
||||
An unknown command will lead to script abort.
|
||||
#### `-o` and `-s` Switches
|
||||
You can use `-o` and/or `-s` switches on any command, or `--optional` / `--silent` respectively. `-o` Continues on failures of a command, and `-s` will try to suppress all error messages.
|
||||
Example: `ask -o -s "Perform this operation (I will completely ignore your response)?"`
|
||||
|
||||
### Commands
|
||||
|
||||
@ -17,6 +20,8 @@ A short description of every command. Click on the command to go to a more detai
|
||||
|
||||
**echo** command - Outputs data to the screen. Syntax: `echo "<text to be outputted>"` Example: `echo "Hello There!"`
|
||||
|
||||
**qr** command - Does the same as echo but also displays a QR on the top screen. Syntax: `qr <message> <qr data>` Example: `qr "Scan for cool stuff! ;)" "https://github.com/d0k3/GodMode9"`
|
||||
|
||||
**chk** command - Checks two values against each other. Syntax: `chk <value1> <value2>` Example: `chk $[HAX] a9lh`
|
||||
|
||||
[more to come ofc]
|
||||
|
Loading…
x
Reference in New Issue
Block a user