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

Method displayAppSummary

command/v7/push_command.go:654–669  ·  view source on GitHub ↗
(plan v7pushaction.PushPlan)

Source from the content-addressed store, hash-verified

652}
653
654func (cmd PushCommand) displayAppSummary(plan v7pushaction.PushPlan) error {
655 log.Info("getting application summary info")
656 summary, warnings, err := cmd.VersionActor.GetDetailedAppSummary(
657 plan.Application.Name,
658 cmd.Config.TargetedSpace().GUID,
659 true,
660 )
661 cmd.UI.DisplayWarnings(warnings)
662 if err != nil {
663 return err
664 }
665 cmd.UI.DisplayNewline()
666 appSummaryDisplayer := shared.NewAppSummaryDisplayer(cmd.UI)
667 appSummaryDisplayer.AppDisplay(summary, true)
668 return nil
669}
670
671func (cmd *PushCommand) eventStreamHandler(eventStream <-chan *v7pushaction.PushEvent) error {
672 for event := range eventStream {

Callers 1

ExecuteMethod · 0.95

Calls 6

AppDisplayMethod · 0.95
NewAppSummaryDisplayerFunction · 0.92
GetDetailedAppSummaryMethod · 0.65
TargetedSpaceMethod · 0.65
DisplayWarningsMethod · 0.65
DisplayNewlineMethod · 0.65

Tested by

no test coverage detected