-
Notifications
You must be signed in to change notification settings - Fork 280
Add help command? #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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`') | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I actually think we should remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kuychaco , would an alternate approach be to add the ... I guess that would get into the realm of needing to manage unstaged and untracked files though... Yeah, perhaps you're right. :) Arguably that could be a separate pull request though? |
||
| 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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could also add
clear = restore to initial state