From c271c6bcd01cb568fb6dfd87e7d6decb8e41360a Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sun, 2 Mar 2025 17:51:42 +0000 Subject: [PATCH] Apply auto-build changes --- .../CommunityFlowPlugins/tools/runCli/1.0.0/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/FlowPlugins/CommunityFlowPlugins/tools/runCli/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/tools/runCli/1.0.0/index.js index 9eaa666..d0b4156 100644 --- a/FlowPlugins/CommunityFlowPlugins/tools/runCli/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/tools/runCli/1.0.0/index.js @@ -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.', }, @@ -209,7 +214,7 @@ var details = function () { return ({ exports.details = details; // eslint-disable-next-line @typescript-eslint/no-unused-vars var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function () { - var lib, userCli, useCustomCliPath, customCliPath, cliPath, doesCommandCreateOutputFile, outputFileBecomesWorkingFile, userOutputFilePath, cliArguments, cacheDir, fileName, cliArgs, availableCli, msg, cli, res, msg; + var lib, userCli, useCustomCliPath, customCliPath, cliPath, outputFileBecomesWorkingFile, userOutputFilePath, cliArguments, cacheDir, fileName, cliArgs, availableCli, msg, cli, res, msg; return __generator(this, function (_a) { switch (_a.label) { case 0: @@ -220,11 +225,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function useCustomCliPath = args.inputs.useCustomCliPath; customCliPath = String(args.inputs.customCliPath); cliPath = ''; - doesCommandCreateOutputFile = args.inputs.doesCommandCreateOutputFile; outputFileBecomesWorkingFile = args.inputs.outputFileBecomesWorkingFile; - if (!doesCommandCreateOutputFile) { - outputFileBecomesWorkingFile = false; - } userOutputFilePath = String(args.inputs.userOutputFilePath); cliArguments = String(args.inputs.cliArguments); // eslint-disable-next-line no-template-curly-in-string