Skip to content

Commit

Permalink
- fix spelling mistake (#602)
Browse files Browse the repository at this point in the history
- fix required option
  • Loading branch information
andrii-codefresh authored Dec 9, 2020
1 parent fb8de68 commit 6e97b80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/interface/cli/commands/components/update.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ const command = new Command({
parent: componentsRoot,
description: 'Update Codefresh CLI components',
webDocs: {
category: 'Componenets',
category: 'Components',
title: 'Update',
},
builder: yargs => yargs
.env('CF_ARG_') // this means that every process.env.CF_ARG_* will be passed to argv
.option('location', {
describe: 'Override dowload folder location',
describe: 'Override download folder location',
}),
handler: async (argv) => {
console.log('Updating components');
Expand Down
6 changes: 5 additions & 1 deletion lib/interface/cli/commands/gitops/install.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const installArgoCmd = new Command({
default: 'https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml',
})
.option('set-argo-password', {
required: true,
describe: 'set password for admin user of new argocd installation',
}),
handler: async (argv) => {
Expand All @@ -99,6 +98,11 @@ const installArgoCmd = new Command({
} = argv;

if (provider === 'argocd') {
if (!setArgoPassword) {
console.error('\nMissing required argument: set-argo-password');
process.exit(1);
}

const result = await installArgocd({
installManifest,
kubeNamespace,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.73.25",
"version": "0.73.26",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 6e97b80

Please sign in to comment.