Skip to content

Commit ff6286b

Browse files
authored
Merge pull request #456 from XpressAI/fahreza/terminal-run-args
🐛 Enable Argument Input Interface when Submitting via Terminal Run
2 parents f34af06 + 8c4eea1 commit ff6286b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/components/XircuitsBodyWidget.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,9 +957,12 @@ export const BodyWidget: FC<BodyWidgetProps> = ({
957957
}
958958

959959
else if (runType === 'terminal-run') {
960-
commands.execute(commandIDs.executeToTerminal, {
961-
command: `xircuits run ${workflow_path}`
962-
});
960+
const result = await handleLocalRunDialog();
961+
if (result.status === 'ok') {
962+
commands.execute(commandIDs.executeToTerminal, {
963+
command: `xircuits run ${workflow_path} ${result.args}`
964+
});
965+
}
963966
}
964967

965968
else {

0 commit comments

Comments
 (0)