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

Method displayIntro

command/v7/update_service_command.go:117–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func (cmd UpdateServiceCommand) displayIntro() error {
118 user, err := cmd.Actor.GetCurrentUser()
119 if err != nil {
120 return err
121 }
122
123 cmd.UI.DisplayTextWithFlavor(
124 "Updating service instance {{.ServiceInstanceName}} in org {{.OrgName}} / space {{.SpaceName}} as {{.Username}}...",
125 map[string]interface{}{
126 "ServiceInstanceName": cmd.RequiredArgs.ServiceInstance,
127 "OrgName": cmd.Config.TargetedOrganization().Name,
128 "SpaceName": cmd.Config.TargetedSpace().Name,
129 "Username": user.Name,
130 },
131 )
132 cmd.UI.DisplayNewline()
133
134 return nil
135}
136
137func (cmd UpdateServiceCommand) noFlagsProvided() bool {
138 return !cmd.Tags.IsSet && !cmd.Parameters.IsSet && cmd.Plan == ""

Callers 1

ExecuteMethod · 0.95

Calls 5

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

Tested by

no test coverage detected