Merge pull request #789 from HaveAGitGat/cli_fix

fix: outputFileBecomesWorkingFile logic when doesCommandCreateOutputF…
This commit is contained in:
HaveAGitGat 2025-03-02 17:54:34 +00:00 committed by GitHub
commit 047521be2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -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.',
},

View file

@ -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.',
@ -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);