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

Method GetApps

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

Source from the content-addressed store, hash-verified

316}
317
318func (cmd *CliRpcCmd) GetApps(_ string, retVal *[]plugin_models.GetAppsModel) error {
319 deps := commandregistry.NewDependency(cmd.stdout, cmd.logger, dialTimeout)
320
321 // set deps objs to be the one used by all other commands
322 // once all commands are converted, we can make fresh deps for each command run
323 deps.Config = cmd.cliConfig
324 deps.RepoLocator = cmd.repoLocator
325 deps.PluginModels.AppsSummary = retVal
326 cmd.terminalOutputSwitch.DisableTerminalOutput(true)
327 deps.UI = terminal.NewUI(os.Stdin, cmd.stdout, cmd.terminalOutputSwitch.(*terminal.TeePrinter), cmd.logger)
328
329 return cmd.newCmdRunner.Command([]string{"apps"}, deps, true)
330}
331
332func (cmd *CliRpcCmd) GetOrgs(_ string, retVal *[]plugin_models.GetOrgs_Model) error {
333 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