mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 01:36:08 -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',
|
defaultValue: 'true',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
|
onSelect: {
|
||||||
|
false: {
|
||||||
|
outputFileBecomesWorkingFile: 'false',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
tooltip: 'Toggle this on if the command creates an output file.',
|
tooltip: 'Toggle this on if the command creates an output file.',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,11 @@ const details = (): IpluginDetails => ({
|
||||||
defaultValue: 'true',
|
defaultValue: 'true',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'switch',
|
type: 'switch',
|
||||||
|
onSelect: {
|
||||||
|
false: {
|
||||||
|
outputFileBecomesWorkingFile: 'false',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
tooltip:
|
tooltip:
|
||||||
'Toggle this on if the command creates an output file.',
|
'Toggle this on if the command creates an output file.',
|
||||||
|
|
@ -199,6 +204,7 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
||||||
const {
|
const {
|
||||||
outputFileBecomesWorkingFile,
|
outputFileBecomesWorkingFile,
|
||||||
} = args.inputs;
|
} = args.inputs;
|
||||||
|
|
||||||
let userOutputFilePath = String(args.inputs.userOutputFilePath);
|
let userOutputFilePath = String(args.inputs.userOutputFilePath);
|
||||||
let cliArguments = String(args.inputs.cliArguments);
|
let cliArguments = String(args.inputs.cliArguments);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue