go-git-stats

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 7 Imported by: 0

README

go-git-stats

CLI tool for git statistics

COMMANDS

repo

Get all repositories.

# When Github access token is set to GGS_TOKEN (environment variable)
$ echo $GGS_TOKEN
> ghq_....

# Repositories for authenticated user with Github access token
$ ggs repo
# abbreviation command
$ ggs r

# Public repositories without Github access token
$ ggs repo -name kokoichi206
$ ggs r -n kokoichi206
stats

Get statistics of a specific repository.

# You need to set Github access token to GGS_TOKEN (environment variable)
# if you want to get private repopsitory stats.
$ echo $GGS_TOKEN
> ghq_....

$ ggs stats -name kokoichi206/go-git-stats
# abbreviation command
$ ggs s -name kokoichi206/go-git-stats
lines

Get lines of codes you wrote before.

# You need to set Github access token to GGS_TOKEN (environment variable)
# if you want to get private repopsitory stats.
$ echo $GGS_TOKEN
> ghq_....
# with access token
$ ggs lines
> 11930741

$ ggs lines -name kokoichi206
> 10452117
# abbreviation command
$ ggs l -n kokoichi206
> 10452117

INSTALLATION

Built binaries are available from GitHub Releases.

https://github.com/kokoichi206/go-git-stats/releases

How to install

MacOS, Linux

curl -Lsf https://raw.githubusercontent.com/kokoichi206/go-git-stats/main/scripts/installer | bash
How to set environment varialbe

MacOS, Linux

# Write these two commands to .bashrc, .zshrc or etc. if you want.
$ GGS_TOKEN=ghq_xxx
$ export GGS_TOKEN

# easier way
$ GGS_TOKEN=ghq_pienpoyon ggs <sub-command>

LICENSE

under MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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