package cmd_clinkimport ()func ( *cobra.Command) string { := fmt.Sprintf(`local function %v_completion(word, word_index, line_state, match_builder) local compline = string.sub(line_state:getline(), 1, line_state:getcursor()) local output = io.popen("env CARAPACE_COMPLINE=" .. string.format("%%q", compline) .. " %v _carapace cmd-clink \"\""):read("*a") for line in string.gmatch(output, '[^\r\n]+') do local matches = {} for m in string.gmatch(line, '[^\t]+') do table.insert(matches, m) end match_builder:addmatch({ match = matches[1], display = matches[2], description = matches[3], type = "word", appendchar = matches[4], suppressappend = false }) end return trueendclink.argmatcher("%v"):addarg({nowordbreakchars="'‵+;,", %v_completion}):loop(1)`, .Name(), uid.Executable(), .Name(), .Name())return}
The pages are generated with Goldsv0.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.