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

Method GetServices

plugin/rpc/cli_rpc_server.go:360–373  ·  view source on GitHub ↗
(_ string, retVal *[]plugin_models.GetServices_Model)

Source from the content-addressed store, hash-verified

358}
359
360func (cmd *CliRpcCmd) GetServices(_ string, retVal *[]plugin_models.GetServices_Model) error {
361 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)
362
363 // set deps objs to be the one used by all other commands
364 // once all commands are converted, we can make fresh deps for each command run
365 // once all commands are converted, we can make fresh deps for each command run
366 deps.Config = cmd.cliConfig
367 deps.RepoLocator = cmd.repoLocator
368 deps.PluginModels.Services = retVal
369 cmd.terminalOutputSwitch.DisableTerminalOutput(true)
370 deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger)
371
372 return cmd.newCmdRunner.Command([]string{"services"}, deps, true)
373}
374
375func (cmd *CliRpcCmd) GetOrgUsers(args []string, retVal *[]plugin_models.GetOrgUsers_Model) error {
376 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)

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