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

Method GetOrg

plugin/rpc/cli_rpc_server.go:403–415  ·  view source on GitHub ↗
(orgName string, retVal *plugin_models.GetOrg_Model)

Source from the content-addressed store, hash-verified

401}
402
403func (cmd *CliRpcCmd) GetOrg(orgName string, retVal *plugin_models.GetOrg_Model) error {
404 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)
405
406 // set deps objs to be the one used by all other commands
407 // once all commands are converted, we can make fresh deps for each command run
408 deps.Config = cmd.cliConfig
409 deps.RepoLocator = cmd.repoLocator
410 deps.PluginModels.Organization = retVal
411 cmd.terminalOutputSwitch.DisableTerminalOutput(true)
412 deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger)
413
414 return cmd.newCmdRunner.Command([]string{"org", orgName}, deps, true)
415}
416
417func (cmd *CliRpcCmd) GetSpace(spaceName string, retVal *plugin_models.GetSpace_Model) error {
418 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