Skip to content

Commit

Permalink
Merge pull request #789 from HaveAGitGat/cli_fix
Browse files Browse the repository at this point in the history
fix: outputFileBecomesWorkingFile logic when doesCommandCreateOutputF…
  • Loading branch information
HaveAGitGat authored Mar 2, 2025
2 parents 1d893f3 + c271c6b commit 047521b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions FlowPlugins/CommunityFlowPlugins/tools/runCli/1.0.0/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ var details = function () { return ({
defaultValue: 'true',
inputUI: {
type: 'switch',
onSelect: {
false: {
outputFileBecomesWorkingFile: 'false',
},
},
},
tooltip: 'Toggle this on if the command creates an output file.',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ const details = (): IpluginDetails => ({
defaultValue: 'true',
inputUI: {
type: 'switch',
onSelect: {
false: {
outputFileBecomesWorkingFile: 'false',
},
},
},
tooltip:
'Toggle this on if the command creates an output file.',
Expand Down Expand Up @@ -199,6 +204,7 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
const {
outputFileBecomesWorkingFile,
} = args.inputs;

let userOutputFilePath = String(args.inputs.userOutputFilePath);
let cliArguments = String(args.inputs.cliArguments);

Expand Down

0 comments on commit 047521b

Please sign in to comment.