Updated Terminal: Adding Commands (markdown)
parent
f9f9646e65
commit
25eb4743f4
|
@ -1 +1,17 @@
|
||||||
# Terminal: Adding Commands
|
# Terminal: Adding Commands
|
||||||
|
|
||||||
|
The terminal, which runs on JavaScript, can have commands added to it.
|
||||||
|
|
||||||
|
## Step 1
|
||||||
|

|
||||||
|
Add the name of your command to the list (around line 25).
|
||||||
|
|
||||||
|
## Step 2
|
||||||
|

|
||||||
|
Add your code using the basic framework above (around line 152). It should look like this:
|
||||||
|
`case 'mycommand':
|
||||||
|
//Your code goes here
|
||||||
|
brake;`
|
||||||
|
|
||||||
|
## Step 3
|
||||||
|
Load up the terminal and run the command by typing its name. You should also be able to see it when running "help"
|
Loading…
Reference in a new issue