progress output: show each operation fetch, bump 5.0.70

This commit is contained in:
“Naeel”
2026-07-16 14:07:02 +04:00
parent ce92ccb7de
commit 3591ea227a
3 changed files with 9 additions and 3 deletions
+4 -1
View File
@@ -47,9 +47,10 @@ func main() {
if svc.ID <= 0 {
continue
}
fmt.Fprintf(os.Stderr, " service %d (%s): fetching...\n", svc.ID, svc.Name)
info, err := cli.GetService(svc.ID)
if err != nil {
fmt.Fprintf(os.Stderr, "WARNING: service %d (%s) skipped: %v\n", svc.ID, svc.Name, err)
fmt.Fprintf(os.Stderr, " ⚠ service %d (%s) skipped: %v\n", svc.ID, svc.Name, err)
continue
}
name := strings.TrimSpace(svc.Name)
@@ -64,6 +65,8 @@ func main() {
name = fmt.Sprintf("service_%d", svc.ID)
}
fmt.Fprintf(os.Stderr, " %d operations to fetch...\n", len(info.Operations))
ops, hasSuspend, _, _, err := cli.CollectOperations(info.Operations)
if err != nil {
panic(err)