Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 13, 2023
1 parent 92de389 commit 9811be7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/actions/bridge/inshellisense.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9811be7

Please sign in to comment.