cli-engine-command
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ 'use strict'; | ||
require('.'); | ||
require('cli-engine-config'); | ||
@@ -11,0 +11,0 @@ function boolean(options = {}) { |
@@ -8,3 +8,3 @@ 'use strict'; | ||
require('.'); | ||
require('cli-engine-config'); | ||
@@ -11,0 +11,0 @@ function StringFlag(options = {}) { |
@@ -7,10 +7,4 @@ 'use strict'; | ||
require('./arg'); | ||
require('./flags'); | ||
var _screen = require('./output/screen'); | ||
require('cli-engine-config'); | ||
var _output = require('./output'); | ||
@@ -67,3 +61,3 @@ | ||
let color = this.out.color; | ||
let flags = Object.keys(cmd.flags || {}).map(f => [f, cmd.flags[f]]).filter(f => !f[1].hidden); | ||
let flags = Object.entries(cmd.flags || {}).filter(([name, flag]) => !flag.hidden); | ||
let args = (cmd.args || []).filter(a => !a.hidden); | ||
@@ -70,0 +64,0 @@ let hasFlags = flags.length ? ` ${color.blue('[flags]')}` : ''; |
@@ -39,9 +39,3 @@ 'use strict'; | ||
}); | ||
Object.defineProperty(exports, 'Flag', { | ||
enumerable: true, | ||
get: function () { | ||
return _flags.Flag; | ||
} | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -8,6 +8,4 @@ 'use strict'; | ||
require('./arg'); | ||
require('cli-engine-config'); | ||
require('./flags'); | ||
class Parse { | ||
@@ -14,0 +12,0 @@ constructor(input) { |
{ | ||
"name": "cli-engine-command", | ||
"description": "base CLI command for cli-engine", | ||
"version": "8.0.9", | ||
"version": "8.0.10", | ||
"author": "Jeff Dickey @dickeyxxx", | ||
@@ -36,3 +36,3 @@ "bugs": "https://github.com/heroku/cli-engine-command/issues", | ||
"babel-plugin-transform-flow-strip-types": "6.22.0", | ||
"cli-engine-config": "^3.1.4", | ||
"cli-engine-config": "^3.1.5", | ||
"eslint": "^4.6.1", | ||
@@ -39,0 +39,0 @@ "eslint-config-standard": "10.2.1", |
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
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
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
87221
-1.56%36
-5.26%1256
-0.79%