Skip to content

Commit

Permalink
powershell: fix completion
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Mar 18, 2023
1 parent 103759a commit 33774fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/carapace/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ var rootCmd = &cobra.Command{
// TODO revert the patching from specCompletion to use the integrated version for overlay to work (should move this somewhere else - best in specCompletion)
out = strings.Replace(out, fmt.Sprintf("--spec '%v'", specPath), args[0], 1)
out = strings.Replace(out, fmt.Sprintf("'--spec', '%v'", specPath), fmt.Sprintf("'%v'", args[0]), 1) // xonsh callback
fmt.Fprintln(cmd.OutOrStdout(), out)
fmt.Fprint(cmd.OutOrStdout(), out)
} else {
fmt.Println(invokeCompleter(args[0]))
fmt.Print(invokeCompleter(args[0]))
}
}
}
Expand Down

0 comments on commit 33774fc

Please sign in to comment.