MCPcopy Create free account
hub / github.com/go-task/task / Completion

Function Completion

completion.go:20–34  ·  view source on GitHub ↗
(completion string)

Source from the content-addressed store, hash-verified

18var completionZsh string
19
20func Completion(completion string) (string, error) {
21 // Get the file extension for the selected shell
22 switch completion {
23 case "bash":
24 return completionBash, nil
25 case "fish":
26 return completionFish, nil
27 case "powershell":
28 return completionPowershell, nil
29 case "zsh":
30 return completionZsh, nil
31 default:
32 return "", fmt.Errorf("unknown shell: %s", completion)
33 }
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…