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

Method Execute

cf/commands/application/logs.go:67–80  ·  view source on GitHub ↗
(c flags.FlagContext)

Source from the content-addressed store, hash-verified

65}
66
67func (cmd *Logs) Execute(c flags.FlagContext) error {
68 app := cmd.appReq.GetApplication()
69
70 var err error
71 if c.Bool("recent") {
72 err = cmd.recentLogsFor(app)
73 } else {
74 err = cmd.tailLogsFor(app)
75 }
76 if err != nil {
77 return err
78 }
79 return nil
80}
81
82func (cmd *Logs) recentLogsFor(app models.Application) error {
83 cmd.ui.Say(T("Connected, dumping recent logs for app {{.AppName}} in org {{.OrgName}} / space {{.SpaceName}} as {{.Username}}...\n",

Callers

nothing calls this directly

Calls 4

recentLogsForMethod · 0.95
tailLogsForMethod · 0.95
GetApplicationMethod · 0.65
BoolMethod · 0.65

Tested by

no test coverage detected