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

Method displayIntro

command/v7/bind_service_command.go:119–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119func (cmd BindServiceCommand) displayIntro() error {
120 user, err := cmd.Actor.GetCurrentUser()
121 if err != nil {
122 return err
123 }
124
125 cmd.UI.DisplayTextWithFlavor(
126 "Binding service instance {{.ServiceInstance}} to app {{.AppName}} in org {{.Org}} / space {{.Space}} as {{.User}}...",
127 map[string]interface{}{
128 "ServiceInstance": cmd.RequiredArgs.ServiceInstanceName,
129 "AppName": cmd.RequiredArgs.AppName,
130 "User": user.Name,
131 "Space": cmd.Config.TargetedSpace().Name,
132 "Org": cmd.Config.TargetedOrganization().Name,
133 },
134 )
135
136 return nil
137}
138
139func (cmd BindServiceCommand) names() map[string]interface{} {
140 return map[string]interface{}{

Callers 1

ExecuteMethod · 0.95

Calls 4

GetCurrentUserMethod · 0.65
DisplayTextWithFlavorMethod · 0.65
TargetedSpaceMethod · 0.65
TargetedOrganizationMethod · 0.65

Tested by

no test coverage detected