From ad40a95aba9ed182f09051c05a6f5235b45536fe Mon Sep 17 00:00:00 2001 From: indexzero Date: Mon, 11 Jul 2011 02:22:00 -0400 Subject: [PATCH] [doc] Added some code docs --- lib/forever/cli.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/forever/cli.js b/lib/forever/cli.js index 8b9dafc8..cf158f78 100644 --- a/lib/forever/cli.js +++ b/lib/forever/cli.js @@ -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);