(_ string, retVal *[]plugin_models.GetSpaces_Model)
| 344 | } |
| 345 | |
| 346 | func (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 | |
| 360 | func (cmd *CliRpcCmd) GetServices(_ string, retVal *[]plugin_models.GetServices_Model) error { |
| 361 | deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout) |
nothing calls this directly
no test coverage detected