From 25eb4743f40da4c904cfc7746ee531b7e027b9d1 Mon Sep 17 00:00:00 2001 From: Innovation Inc Date: Tue, 23 Apr 2019 12:16:18 -0500 Subject: [PATCH] Updated Terminal: Adding Commands (markdown) --- Terminal:-Adding-Commands.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Terminal:-Adding-Commands.md b/Terminal:-Adding-Commands.md index fabfcdc..0870b53 100644 --- a/Terminal:-Adding-Commands.md +++ b/Terminal:-Adding-Commands.md @@ -1 +1,17 @@ -# Terminal: Adding Commands \ No newline at end of file +# 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" \ No newline at end of file