Skip to content

feat(cli): promote expose/ports to top-level (keep shared aliases) - #117

Merged
gustavobertoi merged 2 commits into
mainfrom
feat/expose-toplevel
Jul 2, 2026
Merged

feat(cli): promote expose/ports to top-level (keep shared aliases)#117
gustavobertoi merged 2 commits into
mainfrom
feat/expose-toplevel

Conversation

@gustavobertoi

Copy link
Copy Markdown
Contributor

Summary

Finishes the long-pending fix/expose-toplevel work. devstack expose and devstack ports are now top-level commands (canonical), with devstack shared expose / shared ports kept as backward-compatible aliases (same logic, fresh command instances).

  • Renamed newSharedExposeCmd/newSharedPortsCmdnewExposeCmd/newPortsCmd.
  • root.go registers the top-level pair; shared.go keeps the aliases.
  • expose_test.go asserts all four paths (expose, ports, shared expose, shared ports) resolve and --off is present.
  • Guide notes (concepts/shared-services/command-reference) updated — no longer "mid-refactor".

Non-breaking. make ci (fmt/vet/build/test-race) + make determinism green. The incomplete stashed WIP that never compiled is superseded and dropped.

🤖 Generated with Claude Code

gustavobertoi and others added 2 commits July 1, 2026 21:07
Finish the long-standing fix/expose-toplevel work: `devstack expose` and
`devstack ports` are now top-level commands (the canonical spelling), while
`devstack shared expose` / `shared ports` remain as backward-compatible
aliases (fresh instances of the same commands). Renames the constructors
newSharedExposeCmd/newSharedPortsCmd → newExposeCmd/newPortsCmd.

- root.go registers top-level expose/ports; shared.go keeps the aliases.
- expose_test.go asserts both paths resolve + the --off flag.
- guide notes updated (no longer "mid-refactor").

make ci + determinism green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gustavobertoi
gustavobertoi merged commit 202e9b7 into main Jul 2, 2026
4 checks passed
@gustavobertoi
gustavobertoi deleted the feat/expose-toplevel branch July 2, 2026 01:51
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.

1 participant