A CLI tool for communicating with github.

go-github

A Golang CLI tool built with Cobra (& cobra-cli).

Pre-requisites

Getting started

You can decide to do one of two things:

  • Clone the repository
$ git clone https://github.com/olumidayy/go-github.git

After cloning, you can then build the tool by running:

$ go build
  • Or just install tool directly in your project.
$ go install github.com/olumidayy/go-github@latest

Usage

There are two commands, user and repo (so far). The former fetches information about a particular user by passing their github username (compulsory), like so:

$ go-github user <USERNAME>

Below is an example:

$ go-github user olumidayy

Just fetched olumidayy's data.
Name: Olumide Nwosu
Username: olumidayy
Followers: 33
Following: 16
Public Repositories: 26
Public Gists: 33
Location: Lagos, Nigeria

The repo command can be used in two ways:

  • Passing just a username:
$ go-github repo <USERNAME>

This returns the name and description of all the user's public repositories.

  • Passing both a username and a repository name as arguments:
$ go-github repo <USERNAME> <REPO_NAME>

This is more specific and returns a summary of the repository in question.

These can be demonstrated as follows:

 $ go-github repo olumidayy

 Fetching olumidayy's repository data...
 Name: bckdrp
 Description: A GraphQL API for shortening URLs

 Name: birthday_reminder
 Description: Utility app to remind of loved ones' birthdays made with flutter.
 .....
 $ go-github repo olumidayy go-github

 Fetching olumidayy's repository data...
 Name: go-github
 Description: A CLI tool for communicating with github.
 Author: olumidayy
 Language: Go
 Stars: 13
 Forks: 0
 Watchers: 13
 Year: 2022

Contributions

Pull requests and contributions are very much welcome! 💙

Owner
Olumide Nwosu
Software development. Node.js, Python.
Olumide Nwosu
Similar Resources

CLI to output stargazer ⭐️ histogram for a GitHub repository

bestgo bestgo is a CLI that pulls live data from https://api.bestofgo.dev (UI coming soon). This is an application that scrapes GitHub data for Go rep

Jun 30, 2022

GitHub CLI extension to create and revoke installation tokens

GitHub CLI extension to create and revoke installation tokens.

Nov 22, 2021

A cli that shows a GitHub-like language usage statistics bar.

A cli that shows a GitHub-like language usage statistics bar.

barley A cli that shows a GitHub-like language usage statistics bar. barley analyses the programming languages used in a directory and creates a used

Jan 8, 2022

Github cli extension to approve or reject pending deployments that are waiting for review.

gh-deploy A gh cli extension to approve or reject pending deployments that are waiting for review. Installation Installation requires a minimum versio

Nov 2, 2022

A GitHub CLI extension to view and generate license files.

gh-license A GitHub CLI extension to view and generate license files. All license information is obtained from the GitHub API. NOTE: The only purpose

Oct 8, 2022

GitHub CLI extension to clone (or update) all repositories in an Organization, with the ability to filter via search queries.

gh-org-repo-sync GitHub CLI extension to clone all repositories in an Organization, with the ability to filter via search queries. If a local clone al

Nov 2, 2022

This tool is a CLI-interactive tool for TA who use eeclass platform

NTHU eeclass TA helper. This tool is a CLI-interactive tool for TA who use eeclass platform. It helps TA to download all the submitted homework, and use CSV to record the score and comment, and upload CSV score directly to the eeclass platform with just 2 Enter key!

Dec 11, 2021

A tool to sent comments to Issues or Pull Requests in Github from CI tools.

CommentCI A tool to sent comments to Issues or Pull Requests in Github from CI tools. Usage Required environment variables: GITHUB_COMMENT_USER - User

Apr 10, 2022

GitHub’s official command line tool

GitHub’s official command line tool

GitHub CLI gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already

Jan 7, 2023
Nebula Diagnosis CLI Tool is an information diagnosis cli tool for the nebula service and the node to which the service belongs.

Nebula Diagnosis CLI Tool is an information diagnosis cli tool for the nebula service and the node to which the service belongs.

Jan 12, 2022
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.

Table of contents Introduction Reference Contributing Introduction Overview git-xargs is a command-line tool (CLI) for making updates across multiple

Dec 31, 2022
CLI tool for manipulating GitHub Labels across multiple repositories

takolabel Installation Mac $ brew install tommy6073/tap/takolabel Other platforms Download from Releases page in this repository. Usage Set variables

Nov 3, 2022
git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command
git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command

git-xargs is a command-line tool (CLI) for making updates across multiple GitHub repositories with a single command. You give git-xargs:

Feb 5, 2022
Github-org-diff - Simple CLI tool to check a diff between 2 branches of all org repos

github-org-diff Simple CLI tool to list org repos that have diff between dev and

Jan 25, 2022
Ghissue - This repo contains a github issue parser, that is useful for Enterprise Github accounts.

Ghissue - This repo contains a github issue parser, that is useful for Enterprise Github accounts. Sometimes is needed to parse the content of the issue for some data extraction or statistics purposes.

Feb 6, 2022
Symfony-cli - The Symfony CLI tool For Golang

Symfony CLI Install To install Symfony CLI, please download the appropriate vers

Dec 28, 2022
bcrypt-cli is the CLI tool for hashing passwords with bcrypt.

bcrypt-cli bcrypt-cli is the CLI tool for hashing passwords with bcrypt. Install go install github.com/ryicoh/bcrypt-cli Usage It can be used like bas

Jan 9, 2023
GTDF-CLI - The official CLI tool to operate with Getting Things Done Framework
GTDF-CLI - The official CLI tool to operate with Getting Things Done Framework

This is the official CLI tool to operate with Getting Things Done Framework. How

Feb 14, 2022
An extension for the GitHub Cli application that displays your current contribution graph
An extension for the GitHub Cli application that displays your current contribution graph

gh-graph An extension for the GitHub Cli application that displays your current contribution graph in the terminal (logged out contribution graph) Ins

Sep 29, 2021