()
| 96 | } |
| 97 | |
| 98 | func (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 | |
| 116 | func (cmd UpgradeServiceCommand) serviceInstanceName() map[string]any { |
| 117 | return map[string]any{ |
no test coverage detected