Skip to content

feat(cli): group autoscale *-schedule into an autoscale schedule subgroup (#306) - #335

Merged
scttfrdmn merged 1 commit into
mainfrom
audit/phase2c-autoscale-schedule
Jul 11, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
audit/phase2c-autoscale-schedule

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Closes #306. Part of the audit tracker #328 (Phase 2 grouping). Same back-compat pattern as #334 (notify workspace).

Change

autoscale add-schedule/remove-schedule/list-schedules (flat, hyphenated) → autoscale schedule add|remove|list. Besides fixing the flat-hyphenated inconsistency, this removes the confusing overlap with the top-level spawn schedule (parameter-sweep scheduling) — a distinct feature that shared the "schedule" vocabulary.

Back-compat

The three flat names remain as hidden, deprecated shim commands under autoscale, each sharing the canonical command's RunE and flag set (via AddFlagSet) and printing use spawn autoscale schedule instead. Existing scripts keep working.

Safety gate preserved

schedule remove keeps its -y/--yes prompt (from #285), verified on both the new and flat forms; TestFlagConventions passes.

Verification

  • spawn autoscale schedule --help lists add/remove/list; flat forms hidden from autoscale --help but functional with a deprecation notice; flat add-schedule still exposes --name/--schedule etc.
  • go build ./..., go vet ./cmd, gofmt, cmd tests green. Pre-existing unrelated TestCatalogValid (feat(plugin): permissions declaration block (#388) #392) still fails on main.

CHANGELOG under Changed. Completes the Phase 2 "recommended subset" (flag alignment #333, notify workspace #334, autoscale schedule #335); the cosmetic renames #304/#307/#308/#316/#317 remain deferred to doc-only.

@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…bgroup (#306)

The three flat-hyphenated commands (autoscale add-schedule/remove-schedule/
list-schedules) are now `autoscale schedule add|remove|list`, which also
removes the confusing overlap with the top-level `spawn schedule`
(parameter sweeps). Flat names remain as hidden, deprecated shims that
share the canonical commands' RunE and flag sets, so existing scripts keep
working. `schedule remove` keeps its -y/--yes prompt.

registerScheduleAlias() mirrors the notify-workspace pattern (#305):
hidden shim, AddFlagSet for identical parsing, Deprecated pointer to the
new form. Part of the 2026-07-11 audit (#328, Phase 2). build/vet/test green.
@scttfrdmn
scttfrdmn force-pushed the audit/phase2c-autoscale-schedule branch from bc81a66 to f2f7290 Compare July 11, 2026 19:43
@scttfrdmn
scttfrdmn merged commit e21837a into main Jul 11, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the audit/phase2c-autoscale-schedule branch July 11, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[audit] Grouping: autoscale *-schedule flat-hyphenated verbs should be an autoscale schedule subgroup

1 participant