Skip to content

feat(cli): add --gw and --ws aliases for --gateway and --workspace - #6202

Open
purp wants to merge 2 commits into
ai-openshell:mainfrom
purp:feat/6200-cli-gw-ws-aliases/purp
Open

purp wants to merge 2 commits into
ai-openshell:mainfrom
purp:feat/6200-cli-gw-ws-aliases/purp

Conversation

@purp

@purp purp commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds --gw as an alias of the global --gateway flag and --ws as an alias of the global --workspace flag, matching the existing gw and ws subcommand aliases.

Related Issue

Closes #6200

Changes

  • Add visible_alias = "gw" to --gateway and visible_alias = "ws" to --workspace in crates/openshell-cli/src/main.rs. Environment variables, defaults, -g, and shell completion are unchanged.
  • Add a parse test covering both aliases before and after the subcommand.
  • Mention the aliases in the gateway overview and workspaces docs.

Release Notes

openshell accepts --gw as a short alias for --gateway and --ws as a short alias for --workspace.

Testing

  • Checks appropriate to the affected code and behavior pass (mise run pre-commit)
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 3, 2026
@purp purp added area:platform SDKs, CLIs, APIs, gateway infrastructure, persistence, configuration, and session management. topic:ux CLI commands/flags, help, errors/exit codes, human-readable output, TUI, and first-run experience. labels Dec 3, 2026
Comment thread docs/how-it-works/gateways/overview.mdx Resolved
@purp
purp marked this pull request as ready for review December 3, 2026 21:08
purp added 2 commits December 3, 2026 16:04
Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
@purp
purp requested a review from drew December 4, 2026 00:06
@purp
purp force-pushed the feat/6200-cli-gw-ws-aliases/purp branch from a5078b1 to ab4a041 Compare December 4, 2026 01:00

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform SDKs, CLIs, APIs, gateway infrastructure, persistence, configuration, and session management. state:accepted A maintainer decided OpenShell should pursue this issue topic:ux CLI commands/flags, help, errors/exit codes, human-readable output, TUI, and first-run experience.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): add --gw and --ws aliases for --gateway and --workspace

2 participants