(shell completion.ShellType)
| 84 | } |
| 85 | |
| 86 | func (i *integrateCmd) validateEnvironment(shell completion.ShellType) error { |
| 87 | if shell == completion.NotSupported { |
| 88 | if runtime.GOOS == "windows" { |
| 89 | return fmt.Errorf("unsupported shell environment, on Windows only powershell is supported") |
| 90 | } else { |
| 91 | return fmt.Errorf("unsupported shell environment, supported shells: bash, zsh") |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | return nil |
| 96 | } |
| 97 | |
| 98 | // initializeCompletions sets up completion handlers |
| 99 | func (i *integrateCmd) initializeCompletions() error { |
no outgoing calls