Skip to content

Commit

Permalink
Merge pull request #2 from binduwavell/clear
Browse files Browse the repository at this point in the history
Add cls command to clear screen.
  • Loading branch information
bhagyas authored Oct 29, 2018
2 parents 674d130 + f206f3b commit b96a559
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ vorpal.command('list people', "Lists all users in system.")
}).then(callback);
});

vorpal
.command('cls', 'Clear the screen.')
.action(function(args, callback) {
this.log('\u001B[2J');
callback();
});

vorpal
.command('debug', 'Debug current connection information.')
.option('-p, --pretty', "Format information to be more human readable.")
Expand Down

0 comments on commit b96a559

Please sign in to comment.