GithubHelp home page GithubHelp logo

go-github's Introduction

go-github

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

Pre-requisites

Getting started

You can decide to do one of two things:

1. Clone the repository

$ git clone https://github.com/olumidayy/go-github.git

After cloning go-github, build the tool by running:

$ go build

To be able to use go-github globally, add it to your Go binaries using the install command.

$ go install

2. Install the 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: 55
Following: 19
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! ๐Ÿ’™

go-github's People

Contributors

olumidayy avatar goodylili avatar

Stargazers

Ifihanagbara Olusheye avatar  avatar Christian joshua avatar Park Sang kil avatar Isaac Adewumi avatar  avatar Abanum Olise avatar Oloyede Oluwatobi Folashade avatar  avatar Ufedojo Atabo avatar Olamide avatar Mofeoluwa avatar John Shodipo avatar  avatar Victor Aderibigbe avatar

Watchers

James Cloos avatar  avatar

Forkers

goodylili nelwhix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.