@hyperone/cli-core
Advanced tools
Comparing version 2.0.12 to 2.0.13
{ | ||
"name": "@hyperone/cli-core", | ||
"version": "2.0.12", | ||
"version": "2.0.13", | ||
"description": "", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"@apidevtools/json-schema-ref-parser": "^9.0.3", | ||
"@hyperone/cli-framework": "^2.0.12", | ||
"@hyperone/cli-framework": "^2.0.13", | ||
"abort-controller": "^3.0.0", | ||
@@ -31,3 +31,3 @@ "camel-case": "^4.1.1", | ||
"license": "MIT", | ||
"gitHead": "e22e39d7d1eb78f58a5a8fb2589ab7f825a04416" | ||
"gitHead": "9f7621663b4418ffaf570e6a0d025f4b73ec2626" | ||
} |
@@ -7,16 +7,19 @@ import http from '../lib/http'; | ||
name: __filename.split('/').pop(), | ||
beforeParseArgv: (cmd) => cmd.options.push( | ||
{ | ||
name: 'passport-file', | ||
typeLabel: 'path', | ||
description: 'Passport file. Default value is ```~/.h1/passport.json```, if available.', | ||
group: ['global'], | ||
}, | ||
{ | ||
name: 'as', | ||
typeLabel: 'uri', | ||
description: 'Act as another actor eg. service account', | ||
group: ['global'], | ||
} | ||
), | ||
beforeParseArgv: (cmd) => { | ||
if (cmd.findCommand) return; | ||
cmd.options.push( | ||
{ | ||
name: 'passport-file', | ||
typeLabel: 'path', | ||
description: 'Passport file. Default value is ```~/.h1/passport.json```, if available.', | ||
group: ['global'], | ||
}, | ||
{ | ||
name: 'as', | ||
typeLabel: 'uri', | ||
description: 'Act as another actor eg. service account', | ||
group: ['global'], | ||
} | ||
); | ||
}, | ||
beforeCommandStart: async (opts, cmd) => { | ||
@@ -23,0 +26,0 @@ const optsAll = opts._all || opts; |
@@ -51,20 +51,24 @@ import jmespath from 'jmespath'; | ||
name: __filename.split('/').pop(), | ||
beforeParseArgv: (cmd) => cmd.options.push(...[ | ||
{ | ||
name: 'output', | ||
alias: 'o', | ||
description: 'Specify output format of command', | ||
type: String, | ||
typeLabel: `${Object.keys(outputFormat).join(',')}`, | ||
defaultValue: 'yaml', | ||
group: ['global'], | ||
}, | ||
{ | ||
name: 'query', | ||
description: 'JMESPath query string', | ||
type: String, | ||
defaultValue: cmd.defaultQuery, | ||
group: ['global'], | ||
}, | ||
]), | ||
beforeParseArgv: (cmd) => { | ||
if (cmd.findCommand) return; | ||
cmd.options.push(...[ | ||
{ | ||
name: 'output', | ||
alias: 'o', | ||
description: 'Specify output format of command', | ||
type: String, | ||
typeLabel: `${Object.keys(outputFormat).join(',')}`, | ||
defaultValue: 'yaml', | ||
group: ['global'], | ||
}, | ||
{ | ||
name: 'query', | ||
description: 'JMESPath query string', | ||
type: String, | ||
defaultValue: cmd.defaultQuery, | ||
group: ['global'], | ||
}, | ||
]); | ||
}, | ||
beforeCommandStart: async (opts) => { | ||
@@ -71,0 +75,0 @@ const optsAll = opts._all || opts; |
export default { | ||
name: __filename.split('/').pop(), | ||
beforeParseArgv: (cmd) => cmd.options.push( | ||
{ | ||
name: 'no-wait', | ||
type: Boolean, | ||
choices: ['true', 'false'], | ||
defaultValue: false, | ||
description: 'In case of queued event do not wait for completion', | ||
group: ['global'], | ||
} | ||
), | ||
beforeParseArgv: (cmd) => { | ||
if (cmd.findCommand) return; | ||
cmd.options.push( | ||
{ | ||
name: 'no-wait', | ||
type: Boolean, | ||
choices: ['true', 'false'], | ||
defaultValue: false, | ||
description: 'In case of queued event do not wait for completion', | ||
group: ['global'], | ||
} | ||
); | ||
}, | ||
beforeCommandStart: async (opts) => { | ||
@@ -15,0 +19,0 @@ const optsAll = opts._all || opts; |
export default { | ||
name: __filename.split('/').pop(), | ||
beforeParseArgv: (cmd) => cmd.options.push({ | ||
name: 'verbose', | ||
type: Boolean, | ||
description: 'Make the operation more talkative.', | ||
defaultValue: false, | ||
group: ['global'], | ||
}), | ||
beforeParseArgv: (cmd) => { | ||
if (cmd.findCommand) return; | ||
cmd.options.push({ | ||
name: 'verbose', | ||
type: Boolean, | ||
description: 'Make the operation more talkative.', | ||
defaultValue: false, | ||
group: ['global'], | ||
}); | ||
}, | ||
beforeCommandStart: async (opts, cmd) => { | ||
@@ -12,0 +16,0 @@ const allOpts = opts._all || opts || {}; |
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
28228
705