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

Method displayPrompt

command/v7/delete_service_command.go:95–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (cmd DeleteServiceCommand) displayPrompt() (bool, error) {
96 cmd.UI.DisplayText("This action impacts all resources scoped to this service instance, including service bindings, service keys and route bindings.")
97 cmd.UI.DisplayText("This will remove the service instance from any spaces where it has been shared.")
98
99 delete, err := cmd.UI.DisplayBoolPrompt(
100 false,
101 "Really delete the service instance {{.ServiceInstanceName}}?",
102 cmd.serviceInstanceName(),
103 )
104 if err != nil {
105 return false, err
106 }
107
108 return delete, nil
109}
110
111func (cmd DeleteServiceCommand) serviceInstanceName() map[string]interface{} {
112 return map[string]interface{}{

Callers 1

ExecuteMethod · 0.95

Calls 3

serviceInstanceNameMethod · 0.95
DisplayTextMethod · 0.65
DisplayBoolPromptMethod · 0.65

Tested by

no test coverage detected