@polaris-sloc/cli
Advanced tools
Comparing version 0.2.0-beta.13 to 0.2.0-beta.14
{ | ||
"name": "@polaris-sloc/cli", | ||
"version": "0.2.0-beta.13", | ||
"version": "0.2.0-beta.14", | ||
"license": "Apache-2.0", | ||
@@ -11,4 +11,4 @@ "author": "Polaris SLO Cloud Authors", | ||
"dependencies": { | ||
"tslib": "^2.2.0", | ||
"yargs": "^17.0.1" | ||
"tslib": "^2.3.1", | ||
"yargs": "^17.1.1" | ||
}, | ||
@@ -15,0 +15,0 @@ "main": "./src/main.js", |
@@ -11,3 +11,3 @@ # Polaris CLI | ||
```sh | ||
nx build cli-polaris-cli --with-deps=true --skip-nx-cache=true --sourceMap=true | ||
nx build cli-polaris-cli --skip-nx-cache=true --sourceMap=true | ||
``` | ||
@@ -14,0 +14,0 @@ |
@@ -13,20 +13,20 @@ "use strict"; | ||
function createGenerateCommand(cli) { | ||
return command_1.createYargsCommand(['generate <type> <name>', 'g'], 'Generates a new Polaris project/component.', args => { | ||
return args.positional(TYPE, { | ||
type: 'string', | ||
description: 'The type of the project/component that should be created.', | ||
choices: [ | ||
'slo-mapping-type', | ||
'slo-controller', | ||
// 'slo-mapping', | ||
'elasticity-strategy', | ||
'elasticity-strategy-controller', | ||
], | ||
}) | ||
.positional(NAME, { | ||
type: 'string', | ||
description: 'The name of the project/component.', | ||
}); | ||
}, args => { | ||
const options = args._.slice(1).join(' ') || '--help'; | ||
return command_1.createYargsCommand(['generate <type> <name>', 'g'], 'Generates a new Polaris project/component.', args => args.positional(TYPE, { | ||
type: 'string', | ||
description: 'The type of the project/component that should be created.', | ||
choices: [ | ||
'slo-mapping-type', | ||
'slo-controller', | ||
// 'slo-mapping', | ||
'metrics-dashboard', | ||
'elasticity-strategy', | ||
'elasticity-strategy-controller', | ||
'metrics-alert', | ||
], | ||
}) | ||
.positional(NAME, { | ||
type: 'string', | ||
description: 'The name of the project/component.', | ||
}), args => { | ||
const options = args._.slice(0).join(' ') || '--help'; | ||
return cli.taskExecutor.runTask(new tasks_1.RunNpmBinaryTask({ | ||
@@ -33,0 +33,0 @@ command: `${polaris_cli_1.NX_CLI} g ${polaris_cli_1.POLARIS_NX}:${args.type} ${args.name} ${options}`, |
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
24370
Updatedtslib@^2.3.1
Updatedyargs@^17.1.1