(appNames []string, user configv3.User)
| 635 | } |
| 636 | |
| 637 | func (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 | |
| 654 | func (cmd PushCommand) displayAppSummary(plan v7pushaction.PushPlan) error { |
| 655 | log.Info("getting application summary info") |
no test coverage detected