Skip to content

Commit bda8604

Browse files
committed
[fix] Manually merge plain-feature because of trailing space noise. Fixes #381.
[dist] Bump dependencies
1 parent 6047462 commit bda8604

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

lib/forever/cli.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
*/
88

99
var fs = require('fs'),
10-
util = require('util'),
1110
path = require('path'),
12-
flatiron = require('flatiron'),
11+
util = require('util'),
12+
colors = require('colors'),
1313
cliff = require('cliff'),
14+
flatiron = require('flatiron'),
1415
forever = require('../forever');
1516

1617
var cli = exports;
@@ -51,6 +52,8 @@ var help = [
5152
' --sourceDir The source directory for which SCRIPT is relative to',
5253
' --minUptime Minimum uptime (millis) for a script to not be considered "spinning"',
5354
' --spinSleepTime Time to wait (millis) between launches of a spinning script.',
55+
' --colors --no-colors will disable output coloring',
56+
' --plain alias of --no-colors',
5457
' --plain Disable command line colors',
5558
' -d, --debug Forces forever to log debug output',
5659
' -v, --verbose Turns on the verbose messages from Forever',
@@ -523,6 +526,13 @@ cli.run = function () {
523526
};
524527

525528
cli.start = function () {
529+
//
530+
// Check for --no-colors/--colors and --plain option
531+
//
532+
if ((typeof app.argv.colors !== 'undefined' && !app.argv.colors) || app.argv.plain) {
533+
colors.mode = 'none';
534+
}
535+
526536
if (app.config.get('help')) {
527537
return util.puts(help.join('\n'));
528538
}

package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,24 @@
2020
"tools"
2121
],
2222
"dependencies": {
23+
"colors": "0.6.0-1",
2324
"cliff": "0.1.8",
24-
"flatiron": "0.2.8",
25+
"flatiron": "0.3.5",
2526
"forever-monitor": "1.2.1",
26-
"nconf": "0.6.1",
27+
"nconf": "0.6.7",
2728
"nssocket": "0.3.8",
28-
"optimist": "0.3.4",
29-
"pkginfo": "0.2.3",
29+
"optimist": "0.4.0",
30+
"pkginfo": "0.3.0",
3031
"timespan": "2.0.1",
31-
"watch": "0.5.1",
32-
"utile": "0.1.2",
33-
"winston": "0.6.2"
32+
"watch": "0.7.0",
33+
"utile": "0.1.7",
34+
"winston": "0.7.0"
3435
},
3536
"devDependencies": {
3637
"broadway": "0.2.x",
3738
"eventemitter2": "0.4.x",
3839
"request": "2.x.x",
39-
"vows": "0.6.x"
40+
"vows": "0.7.x"
4041
},
4142
"bin": {
4243
"forever": "./bin/forever",

0 commit comments

Comments
 (0)