Skip to content

Commit 6e97b80

Browse files
- fix spelling mistake (#602)
- fix required option
1 parent fb8de68 commit 6e97b80

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

lib/interface/cli/commands/components/update.cmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const command = new Command({
77
parent: componentsRoot,
88
description: 'Update Codefresh CLI components',
99
webDocs: {
10-
category: 'Componenets',
10+
category: 'Components',
1111
title: 'Update',
1212
},
1313
builder: yargs => yargs
1414
.env('CF_ARG_') // this means that every process.env.CF_ARG_* will be passed to argv
1515
.option('location', {
16-
describe: 'Override dowload folder location',
16+
describe: 'Override download folder location',
1717
}),
1818
handler: async (argv) => {
1919
console.log('Updating components');

lib/interface/cli/commands/gitops/install.cmd.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const installArgoCmd = new Command({
7979
default: 'https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml',
8080
})
8181
.option('set-argo-password', {
82-
required: true,
8382
describe: 'set password for admin user of new argocd installation',
8483
}),
8584
handler: async (argv) => {
@@ -99,6 +98,11 @@ const installArgoCmd = new Command({
9998
} = argv;
10099

101100
if (provider === 'argocd') {
101+
if (!setArgoPassword) {
102+
console.error('\nMissing required argument: set-argo-password');
103+
process.exit(1);
104+
}
105+
102106
const result = await installArgocd({
103107
installManifest,
104108
kubeNamespace,

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.73.25",
3+
"version": "0.73.26",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)