Updated Terminal: Adding Commands (markdown)
parent
86eba769dc
commit
c3a5d82117
|
@ -4,19 +4,21 @@
|
||||||
The terminal, which runs on JavaScript, can have commands added to it.
|
The terminal, which runs on JavaScript, can have commands added to it.
|
||||||
|
|
||||||
### Step 1
|
### Step 1
|
||||||
Open the terminal file. It is located at `terminal/terminal.js`
|
Open the terminal file. It is located at `terminal/terminal.js`<br />
|
||||||

|

|
||||||
|
<br />
|
||||||
Add the name of your command to the list.
|
Add the name of your command to the list.
|
||||||
|
|
||||||
### Step 2
|
### Step 2
|
||||||
<!-- Todo: Readd a new image without the "brake;" issue that I somehow didn't notice. -->
|
<!-- Todo: Readd a new image without the "brake;" issue that I somehow didn't notice. -->
|
||||||
Add your code using the basic framework below. It should look like this:
|
Add your code using the basic framework below. It should look like this:
|
||||||
|
<br />
|
||||||
`
|
`
|
||||||
case 'mycommand':
|
case 'mycommand':
|
||||||
//Your code goes here
|
//Your code goes here
|
||||||
break;
|
break;
|
||||||
`
|
`
|
||||||
|
<br />
|
||||||
Make your modifications and save the file.
|
Make your modifications and save the file.
|
||||||
|
|
||||||
### Step 3
|
### Step 3
|
||||||
|
|
Loading…
Reference in a new issue