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

Method SetCommand

cf/commandregistry/registry.go:107–109  ·  view source on GitHub ↗
(cmd Command)

Source from the content-addressed store, hash-verified

105}
106
107func (r *registry) SetCommand(cmd Command) {
108 r.cmd[cmd.MetaData().Name] = cmd
109}
110
111func (r *registry) RemoveCommand(cmdName string) {
112 delete(r.cmd, cmdName)

Callers 15

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 1

MetaDataMethod · 0.65

Tested by

no test coverage detected