Skip to content

Align mcp/secrets help subcommand wording and add consistency guardrails - #51096

Merged
pelikhan merged 3 commits into
mainfrom
copilot/cli-consistency-issues
Aug 7, 2026
Merged

pelikhan merged 3 commits into
mainfrom
copilot/cli-consistency-issues

Conversation

Copilot AI commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

CLI help output had drift between hand-written Available subcommands prose and Cobra-generated Available Commands entries, specifically for gh aw secrets (bootstrap) and gh aw mcp (list-tools). This change removes the wording split and adds a focused test to keep those descriptions in sync.

  • Help text alignment

    • Updated /pkg/cli/secrets_command.go prose entry for bootstrap to match the subcommand Short text exactly.
    • Updated /pkg/cli/mcp.go prose entry for list-tools to match the subcommand Short text exactly.
  • Consistency regression coverage

    • Added TestSubcommandListingsMatchCobraShortDescriptions in /pkg/cli/cli_consistency_help_test.go.
    • The test asserts NewSecretsCommand().Long and NewMCPCommand().Long contain bullet entries derived from the actual Cobra Short descriptions for bootstrap and list-tools.
assert.Contains(t, cmd.Long, "  - bootstrap - "+bootstrapCmd.Short)
assert.Contains(t, cmd.Long, "  - list-tools - "+listToolsCmd.Short)

Copilot AI and others added 2 commits August 7, 2026 14:45
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix conflicting descriptions in gh aw secrets help output Align mcp/secrets help subcommand wording and add consistency guardrails Aug 7, 2026
Copilot AI requested a review from pelikhan August 7, 2026 14:51
@pelikhan
pelikhan marked this pull request as ready for review August 7, 2026 16:40
Copilot AI balanced review requested due to automatic review settings August 7, 2026 16:40
@pelikhan
pelikhan merged commit 1c58b54 into main Aug 7, 2026
@pelikhan
pelikhan deleted the copilot/cli-consistency-issues branch August 7, 2026 16:41

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

Aligns hand-written CLI subcommand listings with Cobra-generated descriptions and adds regression coverage.

Changes:

  • Synchronizes secrets bootstrap and mcp list-tools help wording.
  • Tests both listings against their Cobra Short descriptions.
  • Refreshes the generated Cursor smoke workflow.
Show a summary per file
File Description
pkg/cli/secrets_command.go Aligns bootstrap help text.
pkg/cli/mcp.go Aligns list-tools help text.
pkg/cli/cli_consistency_help_test.go Adds consistency assertions.
.github/workflows/smoke-cursor.lock.yml Refreshes generated workflow output.

Review details

Tip

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

  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.86.1

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-08-07

3 participants