Skip to content

Commit

Permalink
fix: if the CWD option is provided, we should not force default confi…
Browse files Browse the repository at this point in the history
…guration when provisioning
  • Loading branch information
remie committed Dec 9, 2024
1 parent 1a37863 commit fa87d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/apt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const ProvisionCommand = () => ({
license: options.license,
nodes: options.nodes,
force: options.force
}, true);
}, options.cwd === undefined);
},
errorHandler: async () => {

Expand Down Expand Up @@ -292,7 +292,7 @@ program
.addOption(new Option('--environment <name>', 'The environment name'))
.addOption(new Option('--license <path_or_license>', 'The host product license, either as a path to a file or the license itself'))
.addOption(new Option('--nodes <number>', 'The number of nodes for the cluster').default(1))
.addOption(new Option('--cwd <directory>', 'Specify the working directory where to find the App Performance Toolkit').default(cwd()))
.addOption(new Option('--cwd <directory>', 'Specify the working directory where to find the App Performance Toolkit'))
.addOption(new Option('-y, --force', 'Use default values for input questions when available').default(false))
.action(options => ActionHandler(program, ProvisionCommand(), options));

Expand Down

0 comments on commit fa87d7a

Please sign in to comment.