From f5f4b36925c5b84d3e3024d4f2244050074eee26 Mon Sep 17 00:00:00 2001 From: Ian Lee Date: Tue, 13 Sep 2016 16:20:46 -0700 Subject: [PATCH 1/2] Added start of a help command to interface --- js/controlbox.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/js/controlbox.js b/js/controlbox.js index 9b71305..f3110cb 100644 --- a/js/controlbox.js +++ b/js/controlbox.js @@ -226,6 +226,31 @@ 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() + 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 From 33a5f5a26f2984eb725583521657808c9198da6e Mon Sep 17 00:00:00 2001 From: Ian Lee Date: Tue, 13 Sep 2016 16:42:26 -0700 Subject: [PATCH 2/2] Added missing commands: redo, mode, clear --- js/controlbox.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/controlbox.js b/js/controlbox.js index f3110cb..3978680 100644 --- a/js/controlbox.js +++ b/js/controlbox.js @@ -229,6 +229,9 @@ function(_yargs, d3, demos) { 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`')