Repository navigation
feat(cli): standardize detail verbs, groups & execute/dry-run flags (#304 #307 #308 #315 #316 #317) - #361
Merged
Conversation
#304 #307 #308 #315 #316 #317) Wave 2 of the 2026-07 audit — user-facing CLI consistency, all shipped as deprecated aliases so nothing breaks: - #304: fsx info→fsx show, schedule describe→schedule show (old verbs aliased) - #307: autoscale set-policy→set-scaling-policy (pairs with set-metric-policy) - #308: cost breakdown <id>→cost <id> (breakdown kept hidden) - #316: add launch --on-idle=stop|hibernate enum, deprecate --hibernate-on-idle - #317: image import --wait is now a bool (like launch/ami/pipeline) + new --wait-timeout minutes flag (default 60); warm mode still implies waiting - #315: cleanup and notify-workspace-destroy now execute by default (prompt-gated, --yes to skip) with --dry-run to preview; --force/--confirm kept as deprecated aliases. upgrade-spored --force→--allow-downgrade (kills the overload with cleanup's execute --force). Guardrails: dropped the stale --confirm carve-out in isDestructive (destroy now has a real --yes); added TestSupersededFlagsAreDeprecated to lock the renamed flags as present-and-deprecated; updated TestWaitFlagParsing for the bool --wait. Closes #304, #307, #308, #315, #316, #317.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…315) cleanup now executes by default; the dry-run path moved behind --dry-run. Update TestTier0_Cleanup to invoke --dry-run for the preview assertion and fix the coverage-test note.
This was referenced Jul 15, 2026
Closed
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.
Wave 2 of the 2026-07 audit (#328) — the user-facing CLI-consistency batch. Everything ships as a deprecated alias, so no existing command or script breaks.
Verb / grouping
fsx info→fsx show,schedule describe→schedule show(old verbs kept as hidden aliases)autoscale set-policy→set-scaling-policy(now symmetric withset-metric-policy; alias kept)costgroup has a single childbreakdown— consider flattening #308cost <sweep-id>shows the breakdown directly;cost breakdown <id>kept hiddenFlags
launch --on-idle=stop|hibernateenum (mirrors--on-complete);--hibernate-on-idledeprecated.--on-idle terminateis rejected with a pointer to--on-complete.image import --waitis now a bool like the other three wait flags; the minute count moved to a new--wait-timeout(default 60). Warm mode still implies waiting.cleanupandnotify workspace destroynow execute by default (prompt-gated,--yesto skip) with--dry-runto preview — was preview-by-default +--force/--confirmto execute.--force/--confirmkept as deprecated aliases.upgrade-spored --force→--allow-downgrade(removes the--forceoverload).Guardrails
--confirmcarve-out inisDestructive—destroynow has a real--yes, so the [audit] SAFETY: destructive-verb --yes gate misses hyphenated compound verbs (workspace-remove, remove-schedule do irreversible deletes with no confirmation) #285 gate applies uniformly.TestSupersededFlagsAreDeprecatedlocks the renamed flags as present-and-deprecated.TestWaitFlagParsingupdated for the bool--wait+--wait-timeout.Verification
go build ./...,gofmt,go vetcleango test ./cmd ./pkg/aws -skip TestCatalogValidgreen (incl.TestFlagConventions)Closes #304, #307, #308, #315, #316, #317.