Skip to content

Commit

Permalink
Merge pull request #979 from rsteube/nushell-spread
Browse files Browse the repository at this point in the history
nushell: spread operator
  • Loading branch information
rsteube authored Jan 11, 2024
2 parents 24e03f2 + d0b2eb6 commit 3c3b1bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/cmd/_test/nushell.nu
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
let example_completer = {|spans|
example _carapace nushell $spans | from json
example _carapace nushell ...$spans | from json
}
2 changes: 1 addition & 1 deletion internal/shell/nushell/snippet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ import (
// Snippet creates the nushell completion script.
func Snippet(cmd *cobra.Command) string {
return fmt.Sprintf(`let %v_completer = {|spans|
%v _carapace nushell $spans | from json
%v _carapace nushell ...$spans | from json
}`, cmd.Name(), uid.Executable())
}

0 comments on commit 3c3b1bc

Please sign in to comment.