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

Method SetDependency

plugin/rpc/fakecommand/fake_command1.go:37–46  ·  view source on GitHub ↗
(deps commandregistry.Dependency, pluginCall bool)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SayMethod · 0.65

Tested by

no test coverage detected