cli-engine-command
Advanced tools
Comparing version 5.1.8 to 5.1.9
@@ -74,3 +74,3 @@ 'use strict'; | ||
commandLine(cmd) { | ||
return [buildUsage(cmd), cmd.description ? this.out.color.gray(cmd.description) : null]; | ||
return [buildUsage(cmd), cmd.description ? this.out.color.dim(cmd.description) : null]; | ||
} | ||
@@ -81,3 +81,3 @@ | ||
return '\n' + renderList(args.map(a => { | ||
return [a.name.toUpperCase(), a.description ? this.out.color.gray(a.description) : null]; | ||
return [a.name.toUpperCase(), a.description ? this.out.color.dim(a.description) : null]; | ||
})) + '\n'; | ||
@@ -101,3 +101,3 @@ } | ||
if (f.required || f.optional === false) description = `(required) ${description}`; | ||
return [` ${label.join(',').trim()}` + usage, description ? this.out.color.gray(description) : null]; | ||
return [` ${label.join(',').trim()}` + usage, description ? this.out.color.dim(description) : null]; | ||
})) + '\n'; | ||
@@ -104,0 +104,0 @@ } |
@@ -54,2 +54,5 @@ 'use strict'; | ||
supports: _supportsColor2.default, | ||
// map gray -> dim because it's not solarized compatible | ||
gray: s => _chalk2.default.dim(s), | ||
grey: s => _chalk2.default.dim(s), | ||
attachment: s => _chalk2.default.cyan(s), | ||
@@ -149,3 +152,3 @@ addon: s => _chalk2.default.yellow(s), | ||
styledHeader(header) { | ||
this.log(this.color.gray('=== ') + this.color.bold(header)); | ||
this.log(this.color.dim('=== ') + this.color.bold(header)); | ||
} | ||
@@ -167,3 +170,3 @@ | ||
let logKeyValue = (key, value) => { | ||
this.log(`${key}:` + ' '.repeat(maxKeyLength - key.length - 1) + pp(value)); | ||
this.log(`${this.color.blue(key)}:` + ' '.repeat(maxKeyLength - key.length - 1) + pp(value)); | ||
}; | ||
@@ -240,3 +243,3 @@ for (var key of keys || Object.keys(obj).sort()) { | ||
logError(err) { | ||
(0, _stream.logToFile)(_util2.default.inspect(err), this.errlog); | ||
(0, _stream.logToFile)(_util2.default.inspect(err) + '\n', this.errlog); | ||
} | ||
@@ -243,0 +246,0 @@ |
@@ -26,3 +26,3 @@ 'use strict'; | ||
options.name = name; | ||
options.prompt = name ? this.out.color.gray(`${name}: `) : this.out.color.gray('> '); | ||
options.prompt = name ? this.out.color.dim(`${name}: `) : this.out.color.dim('> '); | ||
let isTTY = process.env.TERM !== 'dumb' && process.stdin.isTTY; | ||
@@ -29,0 +29,0 @@ return this.out.action.pause(() => { |
{ | ||
"name": "cli-engine-command", | ||
"description": "base CLI command for cli-engine", | ||
"version": "5.1.8", | ||
"version": "5.1.9", | ||
"author": "Jeff Dickey @dickeyxxx", | ||
@@ -25,3 +25,3 @@ "bugs": "https://github.com/heroku/cli-engine-command/issues", | ||
"string": "3.x", | ||
"supports-color": "3.x" | ||
"supports-color": "^4.1.0" | ||
}, | ||
@@ -36,12 +36,12 @@ "devDependencies": { | ||
"cli-engine-config": "^1.3.7", | ||
"eslint": "^4.0.0", | ||
"eslint": "^4.1.1", | ||
"eslint-config-standard": "10.2.1", | ||
"eslint-plugin-flowtype": "2.34.0", | ||
"eslint-plugin-import": "2.3.0", | ||
"eslint-plugin-flowtype": "^2.34.1", | ||
"eslint-plugin-import": "^2.6.1", | ||
"eslint-plugin-jest": "20.0.3", | ||
"eslint-plugin-node": "5.0.0", | ||
"eslint-plugin-node": "^5.1.0", | ||
"eslint-plugin-promise": "3.5.0", | ||
"eslint-plugin-standard": "3.0.1", | ||
"flow-bin": "^0.48.0", | ||
"flow-copy-source": "1.1.0", | ||
"flow-bin": "^0.49.1", | ||
"flow-copy-source": "^1.2.0", | ||
"flow-typed": "2.1.2", | ||
@@ -48,0 +48,0 @@ "jest": "20.0.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
145721
2080
+ Addedhas-flag@2.0.0(transitive)
+ Addedsupports-color@4.5.0(transitive)
- Removedhas-flag@1.0.0(transitive)
- Removedsupports-color@3.2.3(transitive)
Updatedsupports-color@^4.1.0