MCPcopy Create free account
hub / github.com/cloudwan/gohan / getCustomCommandName

Function getCustomCommandName

cli/client/client.go:129–135  ·  view source on GitHub ↗
(command string, length int)

Source from the content-addressed store, hash-verified

127}
128
129func getCustomCommandName(command string, length int) string {
130 args := strings.Split(command, " ")
131 if length == 0 && len(args) >= 2 && isCustomCommand(args[1]) {
132 return args[1]
133 }
134 return ""
135}
136
137// ExecuteCommand ...
138func (gohanClientCLI *GohanClientCLI) ExecuteCommand(command string, arguments []string) (string, error) {

Callers 1

ExecuteCommandMethod · 0.85

Calls 1

isCustomCommandFunction · 0.85

Tested by

no test coverage detected