Skip to content

Document compile --no-models-dev-lookup and add CLI docs regression coverage#43339

Merged
pelikhan merged 2 commits into
mainfrom
copilot/cli-consistency-fix-compile-docs
Jul 4, 2026
Merged

Document compile --no-models-dev-lookup and add CLI docs regression coverage#43339
pelikhan merged 2 commits into
mainfrom
copilot/cli-consistency-fix-compile-docs

Conversation

Copilot AI commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

The gh aw compile docs were missing a public flag that is already exposed by the CLI: --no-models-dev-lookup. This creates drift between the documented and actual command surface for compile.

  • Docs

    • Added --no-models-dev-lookup to the gh aw compile Options list in docs/src/content/docs/setup/cli.md
  • Regression coverage

    • Extended pkg/cli/cli_consistency_help_test.go with a focused assertion that the compile section in the CLI docs includes --no-models-dev-lookup
  • Result

    • Keeps the published compile reference aligned with the public Cobra flag set
    • Adds a narrow guardrail for future CLI/docs drift in this section
**Options:** ..., `--no-check-update`, `--no-emit`, `--no-models-dev-lookup`, `--poutine`, ...

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing --no-models-dev-lookup in compile command docs Document compile --no-models-dev-lookup and add CLI docs regression coverage Jul 4, 2026
Copilot AI requested a review from pelikhan July 4, 2026 07:48
@pelikhan pelikhan marked this pull request as ready for review July 4, 2026 07:53
Copilot AI review requested due to automatic review settings July 4, 2026 07:53
@pelikhan pelikhan merged commit 9ed32aa into main Jul 4, 2026
@pelikhan pelikhan deleted the copilot/cli-consistency-fix-compile-docs branch July 4, 2026 07: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 keeps the published gh aw compile CLI reference aligned with the actual Cobra flag surface by documenting the already-supported --no-models-dev-lookup flag and adding a regression test to prevent future docs drift.

Changes:

  • Documented --no-models-dev-lookup in the gh aw compile options list in the setup CLI docs.
  • Added a Go test asserting the compile docs section includes --no-models-dev-lookup.
Show a summary per file
File Description
pkg/cli/cli_consistency_help_test.go Adds regression coverage to ensure the CLI docs’ compile section includes --no-models-dev-lookup.
docs/src/content/docs/setup/cli.md Updates the compile Options list to include --no-models-dev-lookup.

Review details

Tip

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

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

Comment on lines +61 to +65
compileIndex := strings.Index(text, "#### `compile`")
require.NotEqual(t, -1, compileIndex, "CLI setup docs should contain the compile section")

compileSection := text[compileIndex:]
assert.Contains(t, compileSection, "`--no-models-dev-lookup`", "compile docs options should include --no-models-dev-lookup")
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-03

3 participants