Updated Terminal: Adding Commands (markdown)

Innovation Inc 2019-04-23 12:16:18 -05:00
parent f9f9646e65
commit 25eb4743f4

@ -1 +1,17 @@
# Terminal: Adding Commands
The terminal, which runs on JavaScript, can have commands added to it.
## Step 1
![](https://lh3.googleusercontent.com/hqlqMsGf2UuaRQeIidJRsM-ZCDETK_3cSkldMxATYkQHmUE86gL8GEbCGDjWdjsrryWeC06uTdXL5LZ2gSaqUxYOIJnb0yVOo43ygFowEFs1AnXGXjqqaYkdudcuj9VhTjKYjcKuhw=w2400)
Add the name of your command to the list (around line 25).
## Step 2
![](https://lh3.googleusercontent.com/t3ABR85g_j_bwyEsqvqjTH4UaBoH55NqvDALNDyma_7-1IPPfImN6JANKv7oGSS0BT1gyb9yTrbOzknTD8eoCCm3r-oyJTV6ruroD5t0gcxImZEHWIr2z0lGCvM3e1GvV4tQsQpaVg=w2400)
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"