()
| 336 | } |
| 337 | |
| 338 | func (m deleteProgressModel) View() string { |
| 339 | if m.success { |
| 340 | return "" |
| 341 | } |
| 342 | if m.quitting { |
| 343 | return "" |
| 344 | } |
| 345 | return fmt.Sprintf("%s %s", m.spinner.View(), m.message) |
| 346 | } |
| 347 | |
| 348 | func RunDeleteProgress(client *api.Client, instanceID string) (string, error) { |
| 349 | InitCommonStyles(os.Stdout) |