Skip to content

feat: support gh and glab - #305

Merged
gengjiawen merged 1 commit into
mainfrom
add-gh-glab-utilities
Sep 22, 2026
Merged

gengjiawen merged 1 commit into
mainfrom
add-gh-glab-utilities

Conversation

@gengjiawen

Copy link
Copy Markdown
Collaborator

Adds the GitHub CLI (gh) and GitLab CLI (glab) to the Utilities category, following the same pattern as the recent jq (#293) and ripgrep (#298) helpers.

  Utilities:
    Git: 2.55.0 - /home/linuxbrew/.linuxbrew/bin/git
    Git LFS: 3.7.1 - /usr/bin/git-lfs
    gh: 2.100.0 - /home/linuxbrew/.linuxbrew/bin/gh
    jq: 1.8.1 - /usr/bin/jq

Details

  • getghInfo runs gh --version and resolves the gh binary.
  • getglabInfo runs glab --version and resolves the glab binary.
  • Both are named after their binaries, consistent with the existing lowercase jq / ripgrep / ccache entries.

Version strings parse with the default versionRegex, so no custom regex is needed:

tool output parsed
gh gh version 2.100.0 (2026-09-03)\nhttps://github.com/cli/cli/releases/tag/v2.100.0 2.100.0
glab glab 1.62.0 (f4b5a2c8) 1.62.0

Testing

  • yarn test (jest + oxlint + prettier) passes — 58 tests.
  • Verified gh end to end on a machine where it is installed (node src/cli.js --utilities reports gh: 2.100.0).
  • glab was not installed on the test machine, so it correctly reports as not found there; its version format was confirmed against the glab source (fmt.Sprintf("glab %s (%s)\n", ...)) rather than a live run.

@gengjiawen
gengjiawen merged commit daef766 into main Sep 22, 2026
7 of 8 checks passed
@gengjiawen
gengjiawen deleted the add-gh-glab-utilities branch September 22, 2026 01:41
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.

1 participant