diff --git a/pkg/actions/bridge/inshellisense.go b/pkg/actions/bridge/inshellisense.go index 16a5deb..09009f9 100644 --- a/pkg/actions/bridge/inshellisense.go +++ b/pkg/actions/bridge/inshellisense.go @@ -14,11 +14,10 @@ func ActionInshellisense(command ...string) carapace.Action { return carapace.ActionMessage("missing argument [ActionInshellisense]") } - args := []string{"complete", "--"} - args = append(args, command...) - args = append(args, c.Args...) + args := append(command, c.Args...) args = append(args, c.Value) - return carapace.ActionExecCommand("inshellisense", args...)(func(output []byte) carapace.Action { + input := strings.Join(args, " ") + return carapace.ActionExecCommand("inshellisense", "complete", input)(func(output []byte) carapace.Action { var r struct { Suggestions []struct { Name string