github.com/lcaballero/go-gh/uses/orgs

Github CLI written in Go. Not very far along. Needed minimal fork form terminal.


License
EPL-1.0
Install
go get github.com/lcaballero/go-gh/uses/orgs

Documentation

Introduction

go-gh provides some github conveniences at the command line for a single logged in users.

Installation

go get github.com/lcaballero/go-gh
cd $GOPATH/src/github.com/lcaballero/go-gh
go get ./...
go install

These commands shold download the project, change directories into the new location, download it’s dependencies and install it on the GOPATH.

It’s convenient to include $GOPATH/bin/ on you $PATH variable so that once go install has ran you have access to the new executable.

Usage

Usage:
  go-gh [OPTIONS] <fork | orgs | pr>

Application Options:
      --token-file=  Name of the file containing the token. (default: ~/.go-gh-token)
      --create-conf  Create bare-bones ~/.go-gh file with guesses for some values.
      --conf-file=   Name of the file where default configuration is stored. (default: ~/.go-gh)
      --base-url=    Base url to use for rest requests. (default: https://github.com/api/v3/)

Help Options:
  -h, --help         Show this help message

Available commands:
  fork
  orgs
  pr

Take note of the two optional configuration files: ~/.go-gh-token and ~/.go-gh. On eash execution the command will look for these files and if they exist use the values found in them.

~/.go-gh-token should contain a github token. While the ~/.go-gh file can contain more custom configuration information. (Most tasks will required the token have the correct permissions set.) For example:

[Active]
Active = Work

[Home]
Username = <user-name>
Token = <github-token>
BaseUrl = https://api.github.com/

[Work]
Username = <work-user>
Token = <github-enteprise-token>
BaseUrl = https://github.mycompany.com/api/v3/

License

See License File.

The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file ‘license’ at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.