mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-11 00:10:29 -07:00
Merge pull request #789 from HaveAGitGat/cli_fix
fix: outputFileBecomesWorkingFile logic when doesCommandCreateOutputF…
This commit is contained in:
commit
047521be2d
2 changed files with 11 additions and 0 deletions
|
|
@ -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.',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue