go-gh provides some github conveniences at the command line for a
single logged in users.
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
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: 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. 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
file can contain more custom configuration information. (Most tasks
will required the token have the correct permissions set.) For
[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/
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.