fix: updated argc argument passing in run-tool and run-agent scripts

This commit is contained in:
2026-05-21 17:06:20 -06:00
parent 2678afe02b
commit 4aaff21f45
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -73,11 +73,11 @@ def to_args:
to_entries | .[] | to_entries | .[] |
(.key | split("_") | join("-")) as $key | (.key | split("_") | join("-")) as $key |
if .value | type == "array" then if .value | type == "array" then
.value | .[] | "--\($key) \(. | escape_shell_word)" .value | .[] | "--\($key)=\(. | escape_shell_word)"
elif .value | type == "boolean" then elif .value | type == "boolean" then
if .value then "--\($key)" else "" end if .value then "--\($key)" else "" end
else else
"--\($key) \(.value | escape_shell_word)" "--\($key)=\(.value | escape_shell_word)"
end; end;
[ to_args ] | join(" ") [ to_args ] | join(" ")
EOF EOF
+2 -2
View File
@@ -70,11 +70,11 @@ def to_args:
to_entries | .[] | to_entries | .[] |
(.key | split("_") | join("-")) as $key | (.key | split("_") | join("-")) as $key |
if .value | type == "array" then if .value | type == "array" then
.value | .[] | "--\($key) \(. | escape_shell_word)" .value | .[] | "--\($key)=\(. | escape_shell_word)"
elif .value | type == "boolean" then elif .value | type == "boolean" then
if .value then "--\($key)" else "" end if .value then "--\($key)" else "" end
else else
"--\($key) \(.value | escape_shell_word)" "--\($key)=\(.value | escape_shell_word)"
end; end;
[ to_args ] | join(" ") [ to_args ] | join(" ")
EOF EOF