Skip to content

Commit

Permalink
[doc] Added some code docs
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jul 11, 2011
1 parent 221c170 commit ad40a95
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/forever/cli.js
Expand Up @@ -223,6 +223,14 @@ cli.clear = function (key) {
});
};

//
// ### function columns (action, value)
// #### @action {string} The subaction to execute
// #### @value {Array} The value to use in the specified `action`.
// Executes the specified subaction: `add`, `rm`, and `set` which
// add, remove, or completely overrides the columns used by `forever list`
// and `forever.list()`.
//
cli.columns = function (action, value) {
if (!~['add', 'rm', 'set'].indexOf(action)) {
forever.log.error('Invalid action: ' + ('columns ' + action).yellow);
Expand Down

0 comments on commit ad40a95

Please sign in to comment.