You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spawn sweep resume lacks --max-concurrent-auto, so following resume's deprecation notice loses the #494 feature #935
Found while fixing #923 (four unused sweepResume*/sweepCollect* vars in cmd/sweepgroup.go, which led to comparing the two command trees).
spawn resume is deprecated with the message use 'spawn sweep resume <sweep-id>' instead, but the replacement is missing one of the deprecated command's flags:
$ spawn resume --help | grep max-concurrent
--max-concurrent int Override max concurrent instances (0 = use original)
--max-concurrent-auto Re-derive max concurrent instances from the account's real AWS quota headroom ... (spawn#494)
$ spawn sweep resume x --max-concurrent-auto
unknown flag: --max-concurrent-auto
(verified on main at 38b2d66, built locally; no AWS call needed.)
cmd/sweepgroup.go's init() registers only --max-concurrent and --detach on sweepResumeCmd, binding them to resume.go's shared vars. Both commands delegate to runResume, which reads resumeMaxConcurrentAuto, so the feature from #494 is reachable only through the deprecated spelling. A user who follows the deprecation notice loses it.
Suggested: register --max-concurrent-auto on sweepResumeCmd bound to resumeMaxConcurrentAuto, and add a gate that every flag on a deprecated top-level sweep command (resume, collect, cancel, list-sweeps) exists on its spawn sweep replacement. The gate should discover the flags with cobra's VisitAll and not use a hand-written list.
Activity
Give spawn sweep resume --max-concurrent-auto, and gate deprecated co…
Give spawn sweep resume --max-concurrent-auto, and gate deprecated co…
Give spawn sweep resume --max-concurrent-auto, and gate deprecated co…