MCPcopy Index your code
hub / github.com/cloudfoundry/cli / announcePushing

Method announcePushing

command/v7/push_command.go:637–652  ·  view source on GitHub ↗
(appNames []string, user configv3.User)

Source from the content-addressed store, hash-verified

635}
636
637func (cmd PushCommand) announcePushing(appNames []string, user configv3.User) {
638 tokens := map[string]interface{}{
639 "AppName": strings.Join(appNames, ", "),
640 "OrgName": cmd.Config.TargetedOrganization().Name,
641 "SpaceName": cmd.Config.TargetedSpace().Name,
642 "Username": user.Name,
643 }
644 singular := "Pushing app {{.AppName}} to org {{.OrgName}} / space {{.SpaceName}} as {{.Username}}..."
645 plural := "Pushing apps {{.AppName}} to org {{.OrgName}} / space {{.SpaceName}} as {{.Username}}..."
646
647 if len(appNames) == 1 {
648 cmd.UI.DisplayTextWithFlavor(singular, tokens)
649 } else {
650 cmd.UI.DisplayTextWithFlavor(plural, tokens)
651 }
652}
653
654func (cmd PushCommand) displayAppSummary(plan v7pushaction.PushPlan) error {
655 log.Info("getting application summary info")

Callers 1

ExecuteMethod · 0.95

Calls 3

TargetedOrganizationMethod · 0.65
TargetedSpaceMethod · 0.65
DisplayTextWithFlavorMethod · 0.65

Tested by

no test coverage detected