MCPcopy Create free account
hub / github.com/celer-pkg/celer / validateEnvironment

Method validateEnvironment

cmds/cmd_integrate.go:86–96  ·  view source on GitHub ↗
(shell completion.ShellType)

Source from the content-addressed store, hash-verified

84}
85
86func (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
99func (i *integrateCmd) initializeCompletions() error {

Callers 2

executeMethod · 0.95

Calls

no outgoing calls

Tested by 1