(label string, tasks []*flowdb.Task)
| 183 | } |
| 184 | |
| 185 | func printOwnerTaskSection(label string, tasks []*flowdb.Task) { |
| 186 | if len(tasks) == 0 { |
| 187 | fmt.Printf("%s: (none)\n", label) |
| 188 | return |
| 189 | } |
| 190 | fmt.Printf("%s:\n", label) |
| 191 | for _, tk := range tasks { |
| 192 | fmt.Printf(" - %-30s [%s]\n", tk.Slug, tk.Status) |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | // ownerRetire implements `flow owner retire <slug> [--delete]`. Graceful |
| 197 | // retire (default) marks the owner status='retired' + archived: it stops |