MCPcopy Create free account
hub / github.com/convox/rack / RegisterCommands

Method RegisterCommands

pkg/cli/engine.go:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (e *Engine) RegisterCommands() {
30 for _, c := range commands {
31 if c.Rack {
32 e.Command(c.Command, c.Description, c.Handler, c.Opts)
33 } else {
34 e.CommandWithoutProvider(c.Command, c.Description, c.Handler, c.Opts)
35 }
36 }
37}
38
39func (e *Engine) currentClient(c *stdcli.Context) sdk.Interface {
40 if e.Client != nil {

Callers 1

NewFunction · 0.95

Calls 2

CommandMethod · 0.95

Tested by

no test coverage detected