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

Method GetService

plugin/rpc/cli_rpc_server.go:431–443  ·  view source on GitHub ↗
(serviceInstance string, retVal *plugin_models.GetService_Model)

Source from the content-addressed store, hash-verified

429}
430
431func (cmd *CliRpcCmd) GetService(serviceInstance string, retVal *plugin_models.GetService_Model) error {
432 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)
433
434 // set deps objs to be the one used by all other commands
435 // once all commands are converted, we can make fresh deps for each command run
436 deps.Config = cmd.cliConfig
437 deps.RepoLocator = cmd.repoLocator
438 deps.PluginModels.Service = retVal
439 cmd.terminalOutputSwitch.DisableTerminalOutput(true)
440 deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger)
441
442 return cmd.newCmdRunner.Command([]string{"service", serviceInstance}, deps, true)
443}

Callers

nothing calls this directly

Calls 4

NewDependencyFunction · 0.92
NewUIFunction · 0.92
DisableTerminalOutputMethod · 0.65
CommandMethod · 0.65

Tested by

no test coverage detected