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

Method displayIntro

command/v7/unbind_service_command.go:92–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92func (cmd UnbindServiceCommand) displayIntro() error {
93 user, err := cmd.Actor.GetCurrentUser()
94 if err != nil {
95 return err
96 }
97
98 cmd.UI.DisplayTextWithFlavor(
99 "Unbinding app {{.AppName}} from service {{.ServiceInstance}} in org {{.Org}} / space {{.Space}} as {{.User}}...",
100 map[string]interface{}{
101 "ServiceInstance": cmd.RequiredArgs.ServiceInstanceName,
102 "AppName": cmd.RequiredArgs.AppName,
103 "User": user.Name,
104 "Space": cmd.Config.TargetedSpace().Name,
105 "Org": cmd.Config.TargetedOrganization().Name,
106 },
107 )
108
109 return nil
110}
111
112func (cmd UnbindServiceCommand) names() map[string]interface{} {
113 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