Skip to content

fix: correct --yes verb, --dir env hint, and add-wizard docs across 9 commands#44050

Open
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/cli-consistency-issues-resolution
Open

fix: correct --yes verb, --dir env hint, and add-wizard docs across 9 commands#44050
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/cli-consistency-issues-resolution

Conversation

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Three CLI consistency issues found by automated inspection: wrong verb in --yes flag descriptions for update/upgrade, $GH_AW_WORKFLOWS_DIR silently omitted from --dir help text in 9 commands, and two flags missing from the add-wizard docs section.

Changes

--yes flag verb mismatch (update_command.go, upgrade_command.go)

Both commands copied the deploy description verbatim and said "create confirmations".

  • update: → "Auto-accept org-mode update confirmations"
  • upgrade: → "Auto-accept org-mode upgrade confirmations"

--dir flag missing env var hint (9 commands)

GetWorkflowDir() reads $GH_AW_WORKFLOWS_DIR for all commands, but only lint and list surfaced this in help text. Updated the remaining 9 to match:

-d, --dir string   Workflow directory (default: $GH_AW_WORKFLOWS_DIR or .github/workflows)

Affected: compile, remove (cmd/gh-aw/main.go), validate, fix, add, add-wizard, deploy, update, upgrade.

add-wizard docs missing two flags (docs/src/content/docs/setup/cli.md)

--append and --no-security-scanner exist in the CLI but were absent from the Options table. Added both to match the add command's documented options.

…add-wizard docs

- Fix --yes flag: update_command uses 'update', upgrade_command uses 'upgrade'
- Fix --dir flag: add $GH_AW_WORKFLOWS_DIR to descriptions in compile, remove (main.go),
  validate, fix, add, add-wizard, deploy, update, upgrade commands
- Update add-wizard docs to include --append and --no-security-scanner options"

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CLI consistency issues identified in inspection fix: correct --yes verb, --dir env hint, and add-wizard docs across 9 commands Jul 7, 2026
Copilot AI requested a review from pelikhan July 7, 2026 14:50
@pelikhan pelikhan marked this pull request as ready for review July 7, 2026 16:53
Copilot AI review requested due to automatic review settings July 7, 2026 16:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves gh aw CLI consistency by aligning help text and docs with existing behavior, especially around workflow directory overrides and org-mode confirmation flags.

Changes:

  • Fixed --yes/-y help text verbs for update and upgrade to match what the commands actually do.
  • Updated --dir/-d help text across commands to include the $GH_AW_WORKFLOWS_DIR environment variable hint.
  • Updated add-wizard docs to include --append and --no-security-scanner in the documented options list.
Show a summary per file
File Description
pkg/cli/validate_command.go Updates --dir help text to mention $GH_AW_WORKFLOWS_DIR.
pkg/cli/upgrade_command.go Updates --dir help text and fixes --yes help verb to “upgrade confirmations”.
pkg/cli/update_command.go Updates --dir help text and fixes --yes help verb to “update confirmations”.
pkg/cli/fix_command.go Updates --dir help text to mention $GH_AW_WORKFLOWS_DIR.
pkg/cli/deploy_command.go Updates --dir help text to mention $GH_AW_WORKFLOWS_DIR.
pkg/cli/add_wizard_command.go Updates --dir help text to mention $GH_AW_WORKFLOWS_DIR.
pkg/cli/add_command.go Updates --dir help text to mention $GH_AW_WORKFLOWS_DIR.
cmd/gh-aw/main.go Updates compile/remove --dir help text to mention $GH_AW_WORKFLOWS_DIR.
docs/src/content/docs/setup/cli.md Adds --append and --no-security-scanner to the add-wizard options list.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 9/9 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment on lines 160 to 162
cmd.Flags().Bool("create-issue", false, "Open a GitHub issue in each org repository with agentic workflows (requires --org)")
cmd.Flags().BoolP("yes", "y", false, "Auto-accept org-mode create confirmations (required in CI)")
cmd.Flags().BoolP("yes", "y", false, "Auto-accept org-mode upgrade confirmations (required in CI)")
cmd.Flags().Bool("audit", false, "Check dependency health without performing upgrades")
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.

[cli-consistency] CLI Consistency Issues - 2026-07-07

3 participants