Skip to content

feat(cli): standardize detail verbs, groups & execute/dry-run flags (#304 #307 #308 #315 #316 #317) - #361

Merged
scttfrdmn merged 2 commits into
mainfrom
feat/cli-consistency-wave2
Jul 15, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
feat/cli-consistency-wave2

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

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

Flags

Guardrails

Verification

  • go build ./..., gofmt, go vet clean
  • go test ./cmd ./pkg/aws -skip TestCatalogValid green (incl. TestFlagConventions)
  • Smoke-tested every old alias AND new form via the built binary (both resolve; old forms print a deprecation notice)

Note on #315: this changes cleanup/destroy from preview-default to execute-default (prompt-protected), per the chosen "full standardize on --dry-run" direction. The confirmation prompt + --yes gate keep it safe for both interactive and scripted use.

Closes #304, #307, #308, #315, #316, #317.

#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

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/bot.go 40.00% 9 Missing ⚠️
cmd/image.go 43.75% 9 Missing ⚠️
cmd/launch_flags.go 58.33% 5 Missing ⚠️
cmd/launch_config.go 0.00% 2 Missing and 2 partials ⚠️
cmd/cleanup.go 66.66% 3 Missing ⚠️
cmd/launch_single.go 0.00% 2 Missing ⚠️

📢 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.
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] Verb consistency: standardize single-resource detail verb (info/describe/show fragmentation)

1 participant