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

Method Command

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

Source from the content-addressed store, hash-verified

11}
12
13func (e *Engine) Command(command, description string, fn HandlerFunc, opts stdcli.CommandOptions) {
14 wfn := func(c *stdcli.Context) error {
15 return fn(e.currentClient(c), c)
16 }
17
18 e.Engine.Command(command, description, wfn, opts)
19}
20
21func (e *Engine) CommandWithoutProvider(command, description string, fn HandlerFunc, opts stdcli.CommandOptions) {
22 wfn := func(c *stdcli.Context) error {

Callers 15

RegisterCommandsMethod · 0.95
AwsCredentialsLoadFunction · 0.80
awscliFunction · 0.80
buildFunction · 0.80
execMethod · 0.80
TestRunAsyncFunction · 0.80
docker.goFile · 0.80
docker.goFile · 0.80
gofmtFunction · 0.80

Calls 1

currentClientMethod · 0.95

Tested by 3

TestRunAsyncFunction · 0.64