gh-language

command module
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 1 Imported by: 0

README

GitHub Language Analyzer

This is an extension to the gh command-line tool for analyzing the count of programming languages used in repositories across a GitHub organization. It retrieves a list of repositories and their associated languages, and then aggregates the data to produce a report of language frequency.

Pre-requisites

  1. Install the GitHub CLI: https://github.com/cli/cli#installation
  2. Confirm that you are authenticated with an account that has access to the org you would like to analyze:
gh auth status

Installation

To install this extension, run the following command:

gh extension install CallMeGreg/gh-language

Usage

Count command

Display the count of programming languages used in repos across an organization.

gh language count YOUR_ORG_NAME

Optionally specify the repo limit (--limit) and/or the number of languages to return (--top)

gh language count YOUR_ORG_NAME --limit 1000 --top 20

Optionally filter by a specific language (--language)

gh language count YOUR_ORG_NAME --language Java

[!NOTE] The --language flag values are case-sensitive.

Trend command

Display the breakdown of programming languages used in repos across an organization per year, based on the repo creation date.

gh language trend YOUR_ORG_NAME

Optionally specify the repo limit (--limit) and/or the number of languages to return (--top)

gh language trend YOUR_ORG_NAME --limit 1000 --top 20

Optionally filter by a specific language (--language)

gh language trend YOUR_ORG_NAME --language Java

[!NOTE] The --language flag values are case-sensitive.

Help

For help, run:

gh language -h
Usage:
  language [command]

Available Commands:
  count       Analyze the count of programming languages used in repos across an organization
  help        Help about any command
  trend       Analyze the trend of programming languages used in repos across an organization over time

Flags:
  -h, --help              help for language
  -L, --language string   The language to filter on
  -l, --limit int         The maximum number of repositories to evaluate (default 100)
  -t, --top int           Return the top N languages (ignored when a language is specified) (default 10)

Use "language [command] --help" for more information about a command.

License

This tool is licensed under the MIT License. See the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL