Skip to content

Commit 6631920

Browse files
committed
update flags
1 parent 9a33e73 commit 6631920

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

lib/interface/cli/commands/cluster/create.cmd.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ const command = new Command({
1616
},
1717
builder: (yargs) => {
1818
return yargs
19-
.option('kubernetes-cluster', {
20-
describe: 'kubernetes cluster name',
19+
.option('kube-context', {
20+
describe: ' kubectl context name',
2121
alias: 'kc',
2222
required: true,
2323
})
24-
.example('codefresh create cluster --kubernetes-cluster production', 'Creating a cluster in codefresh');
24+
.example('codefresh create cluster --kube-context production', 'Creating a cluster in codefresh');
2525
},
2626
handler: async (argv) => {
2727
const context = authManager.getCurrentContext();
28-
const name = argv['kubernetes-cluster'];
28+
const name = argv['kube-context'];
2929
await cluster.createCluster({
3030
name,
3131
context,

lib/interface/cli/commands/runtimeEnvironments/create.cmd.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,27 @@ const command = new Command({
4444
},
4545
builder: (yargs) => {
4646
return yargs
47-
.option('kubernetes-cluster', {
48-
describe: 'kubernetes cluster name',
49-
alias: 'kc',
47+
.option('cluster', {
48+
describe: 'codefresh cluster integration name',
49+
alias: 'c',
5050
required: true,
5151
})
5252
.option('namespace', {
5353
describe: 'namespace',
5454
alias: 'n',
5555
default: 'codefresh',
5656
})
57-
.option('context', {
58-
describe: 'set the desire kubernetes context',
57+
.option('kube-context', {
58+
describe: 'kubectl context name',
59+
alias: 'kc',
5960
})
60-
.example('codefresh create re --kubernetes-cluster prod --namespace codefresh --context kubeCodefresh', 'Creating a runtime environment which configured to cluster prod and namespace codefresh');
61+
.example('codefresh create re --cluster prod --namespace codefresh --kube-context kubeCodefresh', 'Creating a runtime environment which configured to cluster prod and namespace codefresh');
6162
},
6263
handler: async (argv) => {
6364
const currentContext = authManager.getCurrentContext();
6465
const { namespace } = argv;
65-
const clusterName = argv['kubernetes-cluster'];
66-
let { context } = argv;
66+
const clusterName = argv.cluster;
67+
let context = argv['kube-context'];
6768
if (!context) {
6869
context = '';
6970
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.8.94",
3+
"version": "0.8.95",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)