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

Method GetOrgs

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

Source from the content-addressed store, hash-verified

330}
331
332func (cmd *CliRpcCmd) GetOrgs(_ string, retVal *[]plugin_models.GetOrgs_Model) error {
333 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)
334
335 // set deps objs to be the one used by all other commands
336 // once all commands are converted, we can make fresh deps for each command run
337 deps.Config = cmd.cliConfig
338 deps.RepoLocator = cmd.repoLocator
339 deps.PluginModels.Organizations = retVal
340 cmd.terminalOutputSwitch.DisableTerminalOutput(true)
341 deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger)
342
343 return cmd.newCmdRunner.Command([]string{"orgs"}, deps, true)
344}
345
346func (cmd *CliRpcCmd) GetSpaces(_ string, retVal *[]plugin_models.GetSpaces_Model) error {
347 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