Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Mar 9, 2024
1 parent 7771409 commit 585d990
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ func shell(shell, command string) carapace.Action {
return carapace.ActionMessage("unsupported shell [%v]: %v", runtime.GOOS, shell)
}

args := append([]string{"-c", command, "--"}, c.Args...)
args := []string{"-c", command}
if shell != "pwsh" {
args = append(args, "--")
}
args = append(args, c.Args...)
return carapace.ActionExecCommand(shell, args...)(func(output []byte) carapace.Action {
lines := strings.Split(string(output), "\n")
batch := carapace.Batch()
Expand Down

0 comments on commit 585d990

Please sign in to comment.