Skip to content

Commit

Permalink
Update cli.js
Browse files Browse the repository at this point in the history
added function to reset columns
  • Loading branch information
kevinkhill committed Jan 24, 2014
1 parent b873164 commit 2cb60e8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var help = [
' columns add <col> Adds the specified column to the output in `forever list`',
' columns rm <col> Removed the specified column from the output in `forever list`',
' columns set <cols> Set all columns for the output in `forever list`',
' columns reset Resets all columns to defaults for the output in `forever list`',
' cleanlogs [CAREFUL] Deletes all historical forever log files',
'',
'options:',
Expand Down Expand Up @@ -510,6 +511,15 @@ app.cmd(/columns set (.*)/, cli.setColumns = function (columns) {
forever.config.saveSync();
});

app.cmd('columns reset', cli.resetColumns = function () {
columns = 'uid command script forever pid logfile uptime'

forever.log.info('Setting columns: ' + columns.magenta);

forever.config.set('columns', columns.split(' '));
forever.config.saveSync();
});

//
// ### function help ()
// Shows help
Expand Down

0 comments on commit 2cb60e8

Please sign in to comment.