(completion string)
| 18 | var completionZsh string |
| 19 | |
| 20 | func 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…