Skip to content

Extension command cannot be executed if aliased #7522

@srz-zumix

Description

@srz-zumix

Describe the bug

gh version 2.30.0 (2023-05-30)
https://github.com/cli/cli/releases/tag/v2.30.0

Aliasing an extension command prints it in the gh alias list, but does not make it executable.
gh 2.29 or earlier worked

Steps to reproduce the behavior

  1. gh extension install srz-zumix/gh-activity-report
  2. gh alias set ar activity-report
  3. gh ar error unknown command "ar" for "gh"

Logs

$ gh alias set ar activity-report                  
- Adding alias for ar: activity-report
✓ Added alias.

$ gh alias list                                    
ar: activity-report

$ gh ar                                            
unknown command "ar" for "gh"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageneeds to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions