File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change 11function _example_completion
2+ set --local data
23 IFS=' ' set data (echo (commandline -cp )' ' | sed " s/ \$ / ''/" | xargs example _carapace fish 2> /dev/null)
34 if [ $status -eq 1 ]
45 IFS=' ' set data (echo (commandline -cp )" '" | sed " s/ \$ / ''/" | xargs example _carapace fish 2> /dev/null)
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111// Snippet creates the fish completion script.
1212func Snippet (cmd * cobra.Command ) string {
1313 return fmt .Sprintf (`function _%[1]v_completion
14+ set --local data
1415 IFS='' set data (echo (commandline -cp)'' | sed "s/ \$/ ''/" | xargs %[2]v _carapace fish 2>/dev/null)
1516 if [ $status -eq 1 ]
1617 IFS='' set data (echo (commandline -cp)"'" | sed "s/ \$/ ''/" | xargs %[2]v _carapace fish 2>/dev/null)
You can’t perform that action at this time.
0 commit comments