()
| 321 | } |
| 322 | |
| 323 | func (m snapshotDeleteProgressModel) View() string { |
| 324 | if m.success { |
| 325 | return "" |
| 326 | } |
| 327 | if m.quitting { |
| 328 | return "" |
| 329 | } |
| 330 | return fmt.Sprintf("%s %s", m.spinner.View(), m.message) |
| 331 | } |
| 332 | |
| 333 | func RunSnapshotDeleteProgress(client *api.Client, snapshotID, snapshotName string) (string, error) { |
| 334 | InitCommonStyles(os.Stdout) |