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

Method SetDependency

plugin/rpc/fakecommand/fake_command2.go:38–44  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

36}
37
38func (cmd FakeCommand2) SetDependency(deps commandregistry.Dependency, pluginCall bool) commandregistry.Command {
39 cmd.req.ui = deps.UI
40 cmd.ui = deps.UI
41 cmd.ui.Say("SetDependency() called, pluginCall " + fmt.Sprintf("%t", pluginCall))
42
43 return cmd
44}
45
46func (cmd FakeCommand2) Execute(c flags.FlagContext) error {
47 cmd.ui.Say("Command Executed")

Callers

nothing calls this directly

Calls 1

SayMethod · 0.65

Tested by

no test coverage detected