Skip to content

Commit f5f4b36

Browse files
committed
Added start of a help command to interface
1 parent f5f2522 commit f5f4b36

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

js/controlbox.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,31 @@ function(_yargs, d3, demos) {
226226

227227
document.getElementById('last-command').textContent = entry
228228

229+
if (entry.trim() === 'help' || entry.trim() === 'help()') {
230+
this.info('pres() = Turn on presenter mode')
231+
this.info('undo = Undo the last git command')
232+
this.info()
233+
this.info('Available Git Commands:')
234+
this.info('`git branch`')
235+
this.info('`git checkout`')
236+
this.info('`git cherry_pick`')
237+
this.info('`git clean`')
238+
this.info('`git commit`')
239+
this.info('`git config`')
240+
this.info('`git fetch`')
241+
this.info('`git log`')
242+
this.info('`git merge`')
243+
this.info('`git pull`')
244+
this.info('`git push`')
245+
this.info('`git rebase`')
246+
this.info('`git reflog`')
247+
this.info('`git reset`')
248+
this.info('`git rev_parse`')
249+
this.info('`git revert`')
250+
this.info('`git tag`')
251+
return
252+
}
253+
229254
if (entry.trim() === 'pres()') {
230255
window.pres()
231256
return

0 commit comments

Comments
 (0)