MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / InitializeAll

Method InitializeAll

commands/base_command.go:75–82  ·  view source on GitHub ↗

InitializeAll initializes the command with the specified name, CLI connection, transport, client & token factories and deploy service URL calculator.

(name string, cliConnection plugin.CliConnection, transport http.RoundTripper, clientFactory clients.ClientFactory, tokenFactory baseclient.TokenFactory, deployServiceURLCalculator util.DeployServiceURLCalculator)

Source from the content-addressed store, hash-verified

73
74// InitializeAll initializes the command with the specified name, CLI connection, transport, client & token factories and deploy service URL calculator.
75func (c *BaseCommand) InitializeAll(name string, cliConnection plugin.CliConnection, transport http.RoundTripper, clientFactory clients.ClientFactory, tokenFactory baseclient.TokenFactory, deployServiceURLCalculator util.DeployServiceURLCalculator) {
76 c.name = name
77 c.cliConnection = cliConnection
78 c.transport = transport
79 c.clientFactory = clientFactory
80 c.tokenFactory = tokenFactory
81 c.deployServiceURLCalculator = deployServiceURLCalculator
82}
83
84// Usage reports incorrect command usage
85func (c *BaseCommand) Usage(message string) {

Calls

no outgoing calls

Tested by

no test coverage detected