Align CLI help text, shared flag usage, and setup docs#45753
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This pull request improves consistency across gh aw CLI help text, shared flag usage strings, and the setup CLI documentation, with corresponding test updates to keep the CLI/docs contract stable.
Changes:
- Standardizes multiple command short/long descriptions and example blocks (including
run,version,compile, and root help). - Promotes
--engineoverride/filter help text into shared constants and updates consumers/tests to use them. - Updates setup docs to include
doctorand aligns additional doc wording with current CLI output.
Show a summary per file
| File | Description |
|---|---|
| pkg/cli/tokens_bootstrap.go | Updates secrets bootstrap short help text to reflect interactive configuration behavior. |
| pkg/cli/project_command.go | Expands project short help text to include management capabilities. |
| pkg/cli/project_command_test.go | Updates tests to match revised project short description. |
| pkg/cli/flags.go | Introduces shared engine flag usage constants and uses them in flag helpers. |
| pkg/cli/flags_test.go | Updates engine flag usage assertions to reference shared constants. |
| pkg/cli/fix_command.go | Refines fix short help text to better describe behavior/defaults. |
| pkg/cli/experiments_command.go | Clarifies experiments short help text to match branch-based behavior. |
| pkg/cli/env_command.go | Clarifies env get/update short help text as compiler-default variables. |
| pkg/cli/cli_consistency_help_test.go | Extends CLI/docs parity tests to include doctor and revised version wording. |
| docs/src/content/docs/setup/cli.md | Adds doctor documentation, updates run --push wording, and aligns version description. |
| cmd/gh-aw/main.go | Aligns root/command help text, uses shared engine usage text, and refines multiple flag descriptions/examples. |
| cmd/gh-aw/main_help_text_test.go | Adjusts help-text consistency tests for --approve and --show-all wording changes. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 12/12 changed files
- Comments generated: 3
- Review effort level: Low
| **Options:** `--repo/-r`, `--dir`, `--require-owner-type`, `--json/-j` | ||
|
|
||
| Use `--repo` to verify a specific repository exists and inspect the local checkout that should correspond to it. `--require-owner-type` accepts `user` or `org` and fails if the resolved owner type does not match. |
| Long: `GitHub Agentic Workflows CLI from GitHub Next | ||
|
|
||
| Common Tasks: | ||
| gh aw init # Set up a new repository | ||
| gh aw doctor --repo owner/repo # Run diagnostics for authentication and repository setup | ||
| gh aw doctor --repo owner/repo # Run diagnostics for authentication and repository setup |
|
Run: https://github.com/github/gh-aw/actions/runs/29430208879
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Addressed in |
|
🎉 This pull request is included in a new release. Release: |
This addresses a batch of CLI consistency issues across command help text, flag descriptions, and
docs/src/content/docs/setup/cli.md. The main gaps were drift between CLI/docs, inconsistent wording across related commands, and duplicated engine flag usage strings.Root and command help alignment
runexamples to build fromconstants.CLIExtensionPrefixinstead of hardcodedgh awversion,disable,compile, andrunhelp textcompileaction pinning language around--gh-aw-ref,--action-tag,--show-all, and safe-update approval textShared flag usage
pkg/cli/flags.gonew,compile, andrunto consume the shared engine usage string instead of duplicating literal textDocs parity
doctorsection under setup docs, including purpose,--repo, and representative usagerun --pushandversiondoctorto the common command table so visible setup commands are documented where users expect themCommand copy cleanup
fix,project,experiments,env get,env update, andsecrets bootstrapFocused test updates
doctorcommandExample of the
runexample cleanup: