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

Method displayPrompt

command/v7/upgrade_service_command.go:98–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (cmd UpgradeServiceCommand) displayPrompt() (bool, error) {
99 cmd.UI.DisplayText(
100 "Warning: This operation may be long running and will block further operations " +
101 "on the service instance until it's completed",
102 )
103
104 upgrade, err := cmd.UI.DisplayBoolPrompt(
105 false,
106 "Do you really want to upgrade the service instance {{.ServiceInstanceName}}?",
107 cmd.serviceInstanceName(),
108 )
109 if err != nil {
110 return false, err
111 }
112
113 return upgrade, nil
114}
115
116func (cmd UpgradeServiceCommand) serviceInstanceName() map[string]any {
117 return map[string]any{

Callers 1

ExecuteMethod · 0.95

Calls 3

serviceInstanceNameMethod · 0.95
DisplayTextMethod · 0.65
DisplayBoolPromptMethod · 0.65

Tested by

no test coverage detected