MCPcopy
hub / github.com/cloudfoundry/cli / FindCommand

Method FindCommand

cf/commandregistry/registry.go:65–75  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

63}
64
65func (r *registry) FindCommand(name string) Command {
66 if _, ok := r.cmd[name]; ok {
67 return r.cmd[name]
68 }
69
70 if alias, exists := r.alias[name]; exists {
71 return r.cmd[alias]
72 }
73
74 return nil
75}
76
77func (r *registry) CommandExists(name string) bool {
78 if strings.TrimSpace(name) == "" {

Callers 15

CommandUsageMethod · 0.95
CommandMethod · 0.80
config_test.goFile · 0.80
login_test.goFile · 0.80
stack_test.goFile · 0.80
passwd_test.goFile · 0.80
auth_test.goFile · 0.80
logout_test.goFile · 0.80
target_test.goFile · 0.80
stacks_test.goFile · 0.80
curl_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected