MCPcopy Index your code
hub / github.com/cloudfoundry/cli / GetSpaces

Method GetSpaces

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

Source from the content-addressed store, hash-verified

344}
345
346func (cmd *CliRpcCmd) GetSpaces(_ string, retVal *[]plugin_models.GetSpaces_Model) error {
347 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)
348
349 // set deps objs to be the one used by all other commands
350 // once all commands are converted, we can make fresh deps for each command run
351 deps.Config = cmd.cliConfig
352 deps.RepoLocator = cmd.repoLocator
353 deps.PluginModels.Spaces = retVal
354 cmd.terminalOutputSwitch.DisableTerminalOutput(true)
355 deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger)
356
357 return cmd.newCmdRunner.Command([]string{"spaces"}, deps, true)
358}
359
360func (cmd *CliRpcCmd) GetServices(_ string, retVal *[]plugin_models.GetServices_Model) error {
361 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