From 9811be75be44302aa2aa1fc1851ce6807d20690b Mon Sep 17 00:00:00 2001 From: rsteube Date: Wed, 13 Dec 2023 11:46:57 +0100 Subject: [PATCH] tmp --- pkg/actions/bridge/inshellisense.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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