// Package fish provides fish completion
package fish import ( ) // Snippet creates the fish completion script. func ( *cobra.Command) string { return fmt.Sprintf(`function _%v_quote_suffix if not commandline -cp | xargs echo 2>/dev/null >/dev/null if commandline -cp | sed 's/$/"/'| xargs echo 2>/dev/null >/dev/null echo '"' else if commandline -cp | sed "s/\$/'/"| xargs echo 2>/dev/null >/dev/null echo "'" end else echo "" end end function _%v_callback commandline -cp | sed "s/\$/"(_%v_quote_suffix)"/" | sed "s/ \$/ ''/" | xargs %v _carapace fish end complete -c %v -f complete -c '%v' -f -a '(_%v_callback)' -r `, .Name(), .Name(), .Name(), uid.Executable(), .Name(), .Name(), .Name()) }