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

Method CommandWithoutProvider

pkg/cli/engine.go:21–27  ·  view source on GitHub ↗
(command, description string, fn HandlerFunc, opts stdcli.CommandOptions)

Source from the content-addressed store, hash-verified

19}
20
21func (e *Engine) CommandWithoutProvider(command, description string, fn HandlerFunc, opts stdcli.CommandOptions) {
22 wfn := func(c *stdcli.Context) error {
23 return fn(nil, c)
24 }
25
26 e.Engine.Command(command, description, wfn, opts)
27}
28
29func (e *Engine) RegisterCommands() {
30 for _, c := range commands {

Callers 1

RegisterCommandsMethod · 0.95

Calls 1

CommandMethod · 0.80

Tested by

no test coverage detected