Repository navigation
feat(cli): group autoscale *-schedule into an autoscale schedule subgroup (#306) - #335
Merged
Merged
Conversation
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
force-pushed
the
audit/phase2c-autoscale-schedule
branch
from
July 11, 2026 19:43
bc81a66 to
f2f7290
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-levelspawn 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'sRunEand flag set (viaAddFlagSet) and printingusespawn autoscale scheduleinstead. Existing scripts keep working.Safety gate preserved
schedule removekeeps its-y/--yesprompt (from #285), verified on both the new and flat forms;TestFlagConventionspasses.Verification
spawn autoscale schedule --helplists add/remove/list; flat forms hidden fromautoscale --helpbut functional with a deprecation notice; flatadd-schedulestill exposes--name/--scheduleetc.go build ./...,go vet ./cmd,gofmt, cmd tests green. Pre-existing unrelatedTestCatalogValid(feat(plugin): permissions declaration block (#388) #392) still fails onmain.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.