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

Method GetApp

plugin/rpc/cli_rpc_server.go:304–316  ·  view source on GitHub ↗
(appName string, retVal *plugin_models.GetAppModel)

Source from the content-addressed store, hash-verified

302}
303
304func (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
318func (cmd *CliRpcCmd) GetApps(_ string, retVal *[]plugin_models.GetAppsModel) error {
319 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