Skip to content

Commit

Permalink
fix --bypass-download flag (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-codefresh authored Nov 7, 2022
1 parent f4710db commit b74ca12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/interface/cli/commands/gitops/install.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ const installArgoCmd = new Command({
})
.option('values', {
describe: 'Specify values in a YAML file',
})
.option('bypass-download', {
describe: 'Will bypass the attempt to download the installer. Instead, will immediately attempt to use the binary from the components folder',
default: false,
type: 'boolean',
}),

handler: async (argv) => {
Expand Down
1 change: 0 additions & 1 deletion lib/interface/cli/commands/hybrid/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ async function getComponent(location = CODEFRESH_PATH, component, bypassDownload
);

const downloadedBinLocation = path.join(
process.cwd(),
location,
_.get(component, 'local.dir', ''),
_.get(component, 'local.bin', ''),
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.80.1",
"version": "0.80.2",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit b74ca12

Please sign in to comment.