diff --git a/Terminal:-Adding-Commands.md b/Terminal:-Adding-Commands.md index 67be72e..ee9505a 100644 --- a/Terminal:-Adding-Commands.md +++ b/Terminal:-Adding-Commands.md @@ -4,19 +4,21 @@ The terminal, which runs on JavaScript, can have commands added to it. ### Step 1 -Open the terminal file. It is located at `terminal/terminal.js` +Open the terminal file. It is located at `terminal/terminal.js`
![](https://lh3.googleusercontent.com/hqlqMsGf2UuaRQeIidJRsM-ZCDETK_3cSkldMxATYkQHmUE86gL8GEbCGDjWdjsrryWeC06uTdXL5LZ2gSaqUxYOIJnb0yVOo43ygFowEFs1AnXGXjqqaYkdudcuj9VhTjKYjcKuhw=w2400) - +
Add the name of your command to the list. ### Step 2 Add your code using the basic framework below. It should look like this: +
` case 'mycommand': //Your code goes here break; ` +
Make your modifications and save the file. ### Step 3