Skip to content

Commit

Permalink
[dist] Drop eyes in favor of cliff
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jun 22, 2011
1 parent bc5995f commit d2aa52b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
18 changes: 2 additions & 16 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,13 @@

var sys = require('sys'),
path = require('path'),
eyes = require('eyes'),
cliff = require('cliff'),
forever = require('../forever');

var cli = exports;

var reserved = ['root', 'pidPath'];

var inspect = eyes.inspector({ stream: null,
styles: {
all: null, // Overall style applied to everything
label: 'underline', // Inspection labels, like 'array' in `array: [1, 2, 3]`
other: 'inverted', // Objects which don't have a literal representation, such as functions
key: 'grey', // The keys in object literals, like 'a' in `{a: 1}`
special: 'grey', // null, undefined...
number: 'blue', // 1, 2, 3, etc
bool: 'magenta', // true false
regexp: 'green', // /\d+/
string: 'yellow'
}
});

//
// ### function exec (action, file, options)
// #### @action {string} CLI action to execute
Expand Down Expand Up @@ -175,7 +161,7 @@ cli.list = function () {
//
cli.config = function () {
var keys = Object.keys(forever.config.store),
conf = inspect(forever.config.store);
conf = cliff.inspect(forever.config.store);

if (keys.length <= 2) {
conf = conf.replace(/\{\s/, '{ \n')
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"async": "0.1.x",
"colors": "0.x.x",
"cliff": "0.x.x",
"eyes": "0.1.x",
"daemon": "0.3.x",
"nconf": "0.x.x",
Expand Down

0 comments on commit d2aa52b

Please sign in to comment.