Repository navigation
feat(cli): group notify workspace-* into a notify workspace subgroup (#305) - #334
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
#305) The four flat-hyphenated commands (notify workspace-add/remove/list/ destroy) are now `notify workspace <verb>`. The flat names remain as hidden, deprecated shims that share the canonical commands' RunE and flag sets (same package vars), so existing scripts keep working and print a pointer to the new form. - New `workspace` parent groups add/remove/list/destroy. - registerWorkspaceAlias() builds each hidden shim via AddFlagSet so flag parsing is identical; MarkDeprecated-style Deprecated message. - remove keeps -y/--yes prompt; destroy keeps --confirm dry-run gate (both verified against TestFlagConventions). Part of the 2026-07-11 audit (#328, Phase 2). go build/vet/test green.
scttfrdmn
force-pushed
the
audit/phase2b-notify-workspace
branch
from
July 11, 2026 19:41
6496249 to
1e84045
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 #305. Part of the audit tracker #328 (Phase 2 grouping). Back-compat preserved via hidden deprecated aliases.
Change
notify workspace-add|remove|list|destroy(flat, hyphenated) →notify workspace add|remove|list|destroy(subgroup). This was the top item in the original audit brief (flat-hyphenated vs subcommands) and also makes the destructive-verb gate cleaner (leafName()is nowremove/destroy).Back-compat
The four flat names remain as hidden, deprecated shim commands under
notify. Each shim shares the canonical command'sRunEand flag set (viaAddFlagSet, so the same package vars back both), and printsusespawn notify workspaceinsteadwhen invoked. Existing scripts keep working.Safety gates preserved
workspace removekeeps its-y/--yesprompt (from [audit] SAFETY: destructive-verb --yes gate misses hyphenated compound verbs (workspace-remove, remove-schedule do irreversible deletes with no confirmation) #285).workspace destroykeeps its--confirmdry-run gate.TestFlagConventionspasses (the shims inherit the confirmation flags).Verification
spawn notify workspace --helplists add/remove/list/destroy; flat forms hidden fromnotify --helpbut still functional with a deprecation notice (confirmed:notify workspace-removeprompts, aborts on empty stdin, exits 1).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.