You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restructure CLI Help Output with Improved Categorization (#265)
* Restructure CLI help output with improved categorization
- Fix duplicate start command registration bug
- Reorganize commands into semantic categories:
- Workspace Commands: core workspace operations (create, start, stop, ls, etc.)
- Workspace Access: tools for accessing workspaces (shell, open, copy, port-forward)
- Organization Management: org-related commands with helpful subcommand hints
- Configuration: settings, secrets, and account management
- Quick Start: onboarding commands like ollama
- Update command annotations from old categories (context, ssh, housekeeping) to new ones
- Add inline tips and hints to guide users (e.g., 'Use brev org --help for subcommands')
- Improve help text discoverability by showing common org subcommands in main help
* Hide dev-only commands from help output
- Move 'fu' command to hidden annotation (inappropriate name, dev-only)
- Move 'env-vars' to hidden annotation (redundant with configure-env-vars)
- These commands remain functional but won't appear in help text
* Hide non-functional secret command from help output
- Move 'secret' command to hidden annotation (non-functional)
- Command remains available but won't appear in help text
* Hide non-functional ollama command from help output
- Move 'ollama' command to hidden annotation (non-functional)
- Removes 'Quick Start' section from help (no longer needed)
- Command remains available but won't appear in help text
* Improve help text clarity and consistency
- Fix typo: 'pulic' -> 'public' in ssh-key description
- Standardize capitalization: all descriptions start with capital letter
- Capitalize proper nouns: Brev, SSH, CLI
- Improve command descriptions for clarity
- Remove misplaced org tip from workspace commands section
- Remove detailed subcommand list from org help
- Add inline tip to org command description
* Fix org subcommands not showing in help output
- Set org command to use default Cobra template instead of custom filtered template
- Update annotations for org subcommands to use consistent 'orgsubcommand' annotation
- This ensures all org subcommands (create, invite, ls, set) are visible when running 'brev org -h'
* Hide status command from help output
* Document invite and set as aliases in help text
- Update Short descriptions to indicate they are aliases for 'brev org invite' and 'brev org set'
- This makes it clearer to users that these are convenience shortcuts
* Capitalize flag descriptions for consistency
- Capitalize first letter of --user flag description
- Maintains consistency with command descriptions
* Capitalize Brev in help flag description
- Define help flag manually to override Cobra's default lowercase description
- Ensures consistency with 'Help for Brev' instead of 'help for brev'
* Hide internal commands and update workspace to instance in help text
* Add provider-dependent support warning for start, stop, and reset commands
* Update redeem command for new help structure and remove 'coupon' from descriptions
* Update pkg/cmd/refresh/refresh.go
Co-authored-by: Pratik Patel <patel.s.pratik@gmail.com>
---------
Co-authored-by: Pratik Patel <patel.s.pratik@gmail.com>
0 commit comments