https://github.com/tbobm/gogit
CLI wrapper for github.com written in Go.
https://github.com/tbobm/gogit
cli github golang
Last synced: 19 days ago
JSON representation
CLI wrapper for github.com written in Go.
- Host: GitHub
- URL: https://github.com/tbobm/gogit
- Owner: tbobm
- License: apache-2.0
- Archived: true
- Created: 2017-11-24T09:18:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T08:24:09.000Z (about 7 years ago)
- Last Synced: 2024-06-20T03:58:16.147Z (over 1 year ago)
- Topics: cli, github, golang
- Language: Go
- Homepage: https://godoc.org/github.com/tbobm/gogit
- Size: 24.1 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Gogit
[](https://opensource.org/licenses/Apache-2.0)
[](https://godoc.org/github.com/tbobm/gogit)
Golang-based CLI wrapper for github.com
## Usage
### Beforehand
Before anything else, export your freshly created
[personnal access token](https://github.com/settings/token), as `GITHUB_TOKEN`
You can do so by including the `export GITHUB_TOKEN=xxxx...` in your `~/.bashrc`
or `~/.profile`.
### Commands
- Create a repository
```bash
$ gogit repo create -n repository_name [-p] # -p makes the repository private
```
- List a user's repositories
```bash
$ gogit repo list -u username
```
- Display help
```bash
$ gogit --help # Or simply 'gogit', which defaults to displaying the help
```
## Installation
### From a release
Download the corresponding archive from [the release page](https://github.com/tbobm/gogit/releases),
extract its content, and place the `gogit` executable in your `$PATH` variable.
### From source
Clone the master branch, and run `make install`.
This will run the `go install` command, placing the `gogit` executable in your `$GOPATH`
[dep](https://github.com/golang/dep) is used to manage packages.
```bash
$ git clone https://github.com/tbobm/gogit
$ cd gogit
$ make install
```
## Why ?
I'm tired of having to use my browser to create repositories, have
informations about my issues, pull requests, etc.
I just want to have a CLI tool that'll allow me to avoid going to
github.com everytime.
Plus I like my terminal font more than my browser's, in addition to that.
## License
[Apache License](https://github.com/tbobm/gogit/blob/master/LICENSE)
Copyright (c) 2017 Theo Massard