Skip to content

Commit

Permalink
Disable multi-command support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom32i committed Jun 28, 2017
1 parent bd2d9fd commit d995bde
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ In your projet repository, just enter `gad [command] (options)`.
| __help__ | Show list of commands | |
| __exit__ | Quit the dashboard | |

You can run several commands with `&&`:

gad "sprint && review"

### Options

You can manually specify any of the options on the fly:
Expand Down
2 changes: 1 addition & 1 deletion src/CLI.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CLI extends EventEmitter {

/**
* @param {String} prompt
* @param {Array} commandStack command stack
* @param {Array} commandStack Command stack
*/
constructor(prompt = '', commandStack = []) {
super();
Expand Down
2 changes: 1 addition & 1 deletion src/GithubAgileDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GithubAgileDashboard {
* @param {String} command
*/
constructor(owner, repo, username, password, cacheDir, command = 'status') {
this.cli = new CLI('gad> ', command.split('&&'));
this.cli = new CLI('gad> ', [command]);
this.loader = new HttpLoader(this.setProject.bind(this), owner, repo, username.trim(), password, cacheDir);
this.user = username.trim();
this.project = null;
Expand Down

0 comments on commit d995bde

Please sign in to comment.