mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 10:15:54 -07:00
feat: use onSelect handler instead
This commit is contained in:
parent
1bab9ad715
commit
b8e96720d1
1 changed files with 8 additions and 6 deletions
|
|
@ -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.',
|
||||||
|
|
@ -196,12 +201,9 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
||||||
const customCliPath = String(args.inputs.customCliPath);
|
const customCliPath = String(args.inputs.customCliPath);
|
||||||
let cliPath = '';
|
let cliPath = '';
|
||||||
|
|
||||||
const { doesCommandCreateOutputFile } = args.inputs;
|
const {
|
||||||
let { outputFileBecomesWorkingFile } = args.inputs;
|
outputFileBecomesWorkingFile,
|
||||||
|
} = args.inputs;
|
||||||
if (!doesCommandCreateOutputFile) {
|
|
||||||
outputFileBecomesWorkingFile = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
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