Source File
snippet.go
Belonging Package
github.com/rsteube/carapace/internal/shell/fish
// Package fish provides fish completionpackage fishimport ()// Snippet creates the fish completion script.func ( *cobra.Command) string {return fmt.Sprintf(`function _%v_quote_suffixif not commandline -cp | xargs echo 2>/dev/null >/dev/nullif commandline -cp | sed 's/$/"/'| xargs echo 2>/dev/null >/dev/nullecho '"'else if commandline -cp | sed "s/\$/'/"| xargs echo 2>/dev/null >/dev/nullecho "'"endelseecho ""endendfunction _%v_callbackcommandline -cp | sed "s/\$/"(_%v_quote_suffix)"/" | sed "s/ \$/ ''/" | xargs %v _carapace fishendcomplete -c %v -fcomplete -c '%v' -f -a '(_%v_callback)' -r`, .Name(), .Name(), .Name(), uid.Executable(), .Name(), .Name(), .Name())}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |