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

Method GetSpace

plugin/rpc/cli_rpc_server.go:417–429  ·  view source on GitHub ↗
(spaceName string, retVal *plugin_models.GetSpace_Model)

Source from the content-addressed store, hash-verified

415}
416
417func (cmd *CliRpcCmd) GetSpace(spaceName string, retVal *plugin_models.GetSpace_Model) error {
418 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)
419
420 // set deps objs to be the one used by all other commands
421 // once all commands are converted, we can make fresh deps for each command run
422 deps.Config = cmd.cliConfig
423 deps.RepoLocator = cmd.repoLocator
424 deps.PluginModels.Space = retVal
425 cmd.terminalOutputSwitch.DisableTerminalOutput(true)
426 deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger)
427
428 return cmd.newCmdRunner.Command([]string{"space", spaceName}, deps, true)
429}
430
431func (cmd *CliRpcCmd) GetService(serviceInstance string, retVal *plugin_models.GetService_Model) error {
432 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