Source File
patch.go
Belonging Package
github.com/carapace-sh/carapace/internal/shell/nushell
package nushellimport (shlex)// Patch uses the lexer to parse and patch given arguments which// are currently passed unprocessed to the completion function.//// see https://www.nushell.sh/book/working_with_strings.htmlfunc ( []string) []string {// TODOfor , := range {if len() == 0 {continue}switch [0] {case '"', "'"[0]:if , := shlex.Split(); == nil {[] = [0].Value}case '`':[] = strings.Trim(, "`")}}return}
![]() |
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. |