Skip to content

Alias gh extension uninstall to gh extension remove - #13599

Merged
babakks merged 1 commit into
trunkfrom
bagtoad/kw-issue-13598-extension-uninstall-alias
Jun 5, 2026
Merged

Alias gh extension uninstall to gh extension remove#13599
babakks merged 1 commit into
trunkfrom
bagtoad/kw-issue-13598-extension-uninstall-alias

Conversation

@BagToad

@BagToad BagToad commented Jun 5, 2026

Copy link
Copy Markdown
Member

Description

Registers uninstall as an official cobra alias of gh extension remove so it shows up in --help and pairs naturally with gh extension install.

Key Points

  • Adds Aliases: []string{"uninstall"} to the remove subcommand in the extension command file. Cobra surfaces it under ALIASES in --help automatically.
  • remove stays the canonical name, so docs and the acceptance txtar are untouched.
  • No new unit test: the alias is one declarative cobra field with no branching, and existing remove cases cover the RunE.

Notes for reviewers

Single-commit PR, one file touched. Manual sanity check after building:

$ gh extension remove --help
...
ALIASES
  gh ext uninstall, gh extension uninstall, gh extensions uninstall

Additional Context

  • Closes cli/cli#13598. The issue lays out the motivation: install / uninstall is the more discoverable pairing, and aliasing avoids a breaking rename of remove.

Register `uninstall` as an official cobra alias for `gh extension remove`
so it shows up in `--help` and pairs naturally with `gh extension install`.

Closes #13598

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 5, 2026 18:21
@BagToad
BagToad requested a review from a team as a code owner June 5, 2026 18:21
@BagToad
BagToad requested a review from babakks June 5, 2026 18:21

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

Registers uninstall as an official Cobra alias for gh extension remove, making gh extension uninstall discoverable in --help while keeping remove as the canonical command name.

Changes:

  • Adds Aliases: []string{"uninstall"} to the gh extension remove subcommand so Cobra surfaces the alias in help output.
Show a summary per file
File Description
pkg/cmd/extension/command.go Adds the uninstall alias to the remove subcommand so it appears under ALIASES in help output.

Copilot's findings

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@babakks
babakks merged commit 5c9ec1c into trunk Jun 5, 2026
19 checks passed
@babakks
babakks deleted the bagtoad/kw-issue-13598-extension-uninstall-alias branch June 5, 2026 19:35
SiddhantOfficial pushed a commit to SiddhantOfficial/claude-builders-bounty that referenced this pull request Jun 16, 2026
…aude-builders-bounty#4)

Adds claude-review, a Claude Code sub-agent that fetches a GitHub PR's diff
and emits a structured Markdown review (Summary / Risks / Suggestions /
Confidence).

- CLI: claude-review --pr <url|owner/repo#n> [--post] [--model]
- Native sub-agent: .claude/agents/pr-reviewer.md
- GitHub Action: github-action/claude-review.yml (post review on every PR)
- README with setup + usage
- Tested on 2 real PRs (cli/cli#13599, cli/cli#13469); outputs in samples/

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

Make extension uninstall an official alias of extension remove?

3 participants