(orgName string, retVal *plugin_models.GetOrg_Model)
| 401 | } |
| 402 | |
| 403 | func (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 | |
| 417 | func (cmd *CliRpcCmd) GetSpace(spaceName string, retVal *plugin_models.GetSpace_Model) error { |
| 418 | deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout) |
nothing calls this directly
no test coverage detected