octlango

command module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 6 Imported by: 0

README

octlango

CLI to get statistics on languages used on GitHub.

Install

go install github.com/korosuke613/octlango@latest

or from the Release.

Usage

❯ octlango -h            
NAME:
   octlango - CLI to get statistics on languages used on GitHub.

USAGE:
   main [global options] command [command options] [arguments...]

VERSION:
   v0.0.5

COMMANDS:
   version  Print octlango version
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --username GITHUB_USERNAME, -u GITHUB_USERNAME  your GITHUB_USERNAME [$OCTLANGO_GH_USERNAME]
   --token GITHUB_TOKEN, -t GITHUB_TOKEN           your GITHUB_TOKEN [$OCTLANGO_GH_TOKEN, $GITHUB_TOKEN]
   --format format, -f format                      format is json or markdown (default: "json")
   --sort-by-size, -s                              if true, the order is by size. (default: true)
   --reverse-order, -r                             if true, reverse the result. (default: false)
   --each-extension                                if true, add extension each row for markdown format (default: false)
   --help, -h                                      show help (default: false)
   --version, -v                                   print the version (default: false)

Example

input

./octlango -u korosuke613 -t YOUR_GITHUB_TOKEN

output

{
  "updated_range": {
    "oldest": "2020-08-02T16:43:48Z",
    "latest": "2021-07-11T13:01:20Z"
  },
  "language_sizes": [
    {
      "name": "TypeScript",
      "size": 537091,
      "percentage": 50.01
    },
    {
      "name": "Vue",
      "size": 103000,
      "percentage": 9.59
    },
    {
      "name": "JavaScript",
      "size": 93888,
      "percentage": 8.74
    },
    {
      "name": "HCL",
      "size": 89233,
      "percentage": 8.31
    },
    {
      "name": "HTML",
      "size": 80865,
      "percentage": 7.53
    },
    {
      "name": "Go",
      "size": 65508,
      "percentage": 6.1
    },
    // ...
  ]
}

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