Add -o & -s switches and qr command

SirNapkin1334 2018-04-16 09:22:23 -07:00
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. 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. 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 ### 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!"` **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` **chk** command - Checks two values against each other. Syntax: `chk <value1> <value2>` Example: `chk $[HAX] a9lh`
[more to come ofc] [more to come ofc]