fix: preserve argument boundaries when passing commands via --

This commit is contained in:
JY Tan
2026-02-05 16:55:55 -08:00
parent 7cc9fb3427
commit 9db1ae8b54

View File

@@ -136,7 +136,7 @@ func runCommand(cmd *cobra.Command, args []string) error {
case cmdString != "":
command = cmdString
case len(args) > 0:
command = strings.Join(args, " ")
command = sandbox.ShellQuote(args)
default:
return fmt.Errorf("no command specified. Use -c <command> or provide command arguments")
}