Giter Site home page Giter Site logo

gsc's Introduction

gsc Release Linter

Github Stats Collector is a tiny cli that helps to collect stats for public repositories.

Screenshot 2020-07-07 at 03 41 29

Install

The quickest way to start: docker run mskutin/gsc get --help

Install binary

Platforms supported:

Mac OS X
wget -c https://github.com/mskutin/gsc/releases/download/v0.3-alpha/gsc-darwin-amd64.tar.gz -O - | tar -xz && \
mv gsc /usr/local/bin/gsc

Installation on other platforms may be different.

Build from source

Clone the repository: git clone https://github.com/mskutin/gsc

Build with go

  • go build
  • ./gsc help

Build with docker

  • docker build -f build/package/cli/Dockerfile . -t gsc
  • docker run gsc get --help

Usage

Repository stats can be retrieved by calling a get command:

Usage:
  gsc get [flags]

Flags:
  -f, --format string   --format tsv (default "csv")
  -h, --help            help for get
  -r, --repos strings   One or more repositories: 'gsc get -r mskutin/gsc'
                        See help for more examples.

Authorization

By default gsc interacts with GitHub API anonymously. Since GitHub's default request rate is only 60 req/h you may run out of this limit shortly. You can set GITHUB_TOKEN and GITHUB_USERNAME environment variables to authorize gsc in GitHub.

Stats

get statistics for one repository:

1) gsc get -r mskutin/gsc
2) gsc get --repos=mskutin/gsc
name,clone_url,last_commit_author,last_commit_date
mskutin/gsc,https://github.com/mskutin/gsc.git,Maksim Skutin,2020-07-07 05:43:31 +0000 UTC

get statistics for multiple repositories:

1) gsc get -f tsv \
    -r mskutin/gsc \
    -r mskutin/nginx-fluentd \
    -r helm/charts
2) gsc get -r=helm/charts,mskutin/gsc
3) echo "helm/charts,mskutin/gsc" | xargs gsc get -r
name,clone_url,last_commit_author,last_commit_date
mskutin/gsc,https://github.com/mskutin/gsc.git,Maksim Skutin,2020-07-07 05:43:31 +0000 UTC
helm/charts,https://github.com/helm/charts.git,Maxime Brunet,2020-07-07 11:51:58 +0000 UTC

Formatters

gsc get [flags]

Flags:
  -f, --format string   --format tsv (default "csv")
./gsc get -f tsv \
    -r mskutin/gsc \
    -r helm/charts \
    -r github/hubot 
name	clone_url	last_commit_author	last_commit_date
mskutin/gsc	https://github.com/mskutin/gsc.git	Maksim Skutin	2020-07-10 20:10:52 +0000 UTC
helm/charts	https://github.com/helm/charts.git	jabdoa2	2020-07-11 17:39:23 +0000 UTC
hubotio/hubot	https://github.com/hubotio/hubot.git	Misty De Meo	2019-04-17 04:49:47 +0000 UTC

By default, gsc uses csv format output.
The following types of output are supported:

  • csv
  • tsv
  • table

gsc's People

Contributors

mskutin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gsc's Issues

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.