diff --git a/js/controlbox.js b/js/controlbox.js index 9b71305..3978680 100644 --- a/js/controlbox.js +++ b/js/controlbox.js @@ -226,6 +226,34 @@ function(_yargs, d3, demos) { document.getElementById('last-command').textContent = entry + if (entry.trim() === 'help' || entry.trim() === 'help()') { + this.info('pres() = Turn on presenter mode') + this.info('undo = Undo the last git command') + this.info('redo = Redo the last undone git command') + this.info('mode = Change mode') + this.info('clear = Clear the history pane and reset the visualization') + this.info() + this.info('Available Git Commands:') + this.info('`git branch`') + this.info('`git checkout`') + this.info('`git cherry_pick`') + this.info('`git clean`') + this.info('`git commit`') + this.info('`git config`') + this.info('`git fetch`') + this.info('`git log`') + this.info('`git merge`') + this.info('`git pull`') + this.info('`git push`') + this.info('`git rebase`') + this.info('`git reflog`') + this.info('`git reset`') + this.info('`git rev_parse`') + this.info('`git revert`') + this.info('`git tag`') + return + } + if (entry.trim() === 'pres()') { window.pres() return