(appName string, retVal *plugin_models.GetAppModel)
| 302 | } |
| 303 | |
| 304 | func (cmd *CliRpcCmd) GetApp(appName string, retVal *plugin_models.GetAppModel) error { |
| 305 | deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout) |
| 306 | |
| 307 | // set deps objs to be the one used by all other commands |
| 308 | // once all commands are converted, we can make fresh deps for each command run |
| 309 | deps.Config = cmd.cliConfig |
| 310 | deps.RepoLocator = cmd.repoLocator |
| 311 | deps.PluginModels.Application = retVal |
| 312 | cmd.terminalOutputSwitch.DisableTerminalOutput(true) |
| 313 | deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger) |
| 314 | |
| 315 | return cmd.newCmdRunner.Command([]string{"app", appName}, deps, true) |
| 316 | } |
| 317 | |
| 318 | func (cmd *CliRpcCmd) GetApps(_ string, retVal *[]plugin_models.GetAppsModel) error { |
| 319 | deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout) |
nothing calls this directly
no test coverage detected