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

Method displayPrompt

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

Source from the content-addressed store, hash-verified

90}
91
92func (cmd UnshareServiceCommand) displayPrompt() (bool, error) {
93 cmd.UI.DisplayNewline()
94 unshare, err := cmd.UI.DisplayBoolPrompt(
95 false,
96 "Really unshare the service instance {{.ServiceInstanceName}} from space {{.SpaceName}}?",
97 map[string]interface{}{
98 "ServiceInstanceName": cmd.RequiredArgs.ServiceInstance,
99 "SpaceName": cmd.SpaceName,
100 })
101 if err != nil {
102 return false, err
103 }
104
105 return unshare, nil
106}

Callers 1

ExecuteMethod · 0.95

Calls 2

DisplayNewlineMethod · 0.65
DisplayBoolPromptMethod · 0.65

Tested by

no test coverage detected