gst

command module
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: MIT Imports: 15 Imported by: 0

README

gst: ghq support toolbox

Build Status

Quick Install

macOS:

curl -L https://github.com/uetchy/gst/releases/download/v1.4.0/gst_darwin_amd64.zip > /usr/local/bin/gst
chmod +x /usr/local/bin/gst

Linux:

curl -L https://github.com/uetchy/gst/releases/download/v1.4.0/gst_linux_amd64.zip > /usr/local/bin/gst
chmod +x /usr/local/bin/gst
Pre-release build

macOS:

curl -L https://github.com/uetchy/gst/releases/download/pre-release/gst_darwin_amd64.zip > /usr/local/bin/gst
chmod +x /usr/local/bin/gst

Linux:

curl -L https://github.com/uetchy/gst/releases/download/pre-release/gst_linux_amd64.zip > /usr/local/bin/gst
chmod +x /usr/local/bin/gst
Head build
go get github.com/uetchy/gst

Usage

gst list or gst

List uncommitted changes and unpushed commits over all repositories.

$ gst
/Users/uetchy/Repos/src/github.com/uetchy/gst (11 minutes ago)
[Uncommitted Changes]
 M .travis.yml
 M README.md

/Users/uetchy/Repos/src/github.com/uetchy/qiita-takeout (9 hours ago)
[Unpushed Commits]
409849d returns Promise.reject

with --short option:

$ gst --short
/Users/uetchy/Repos/src/github.com/uetchy/ferret
/Users/uetchy/Repos/src/github.com/uetchy/gst

You can also use it with peco for pipeline processing as:

$ cd $(gst --short | peco)
new

Create git repository.

Before start using 'new' and 'rm' command, You must set 'github.user' to .gitconfig with git config --global github.user <user>.

$ gst new epic-project
/Users/uetchy/Repos/src/github.com/uetchy/epic-project
$ gst new epic-team/epic-project
/Users/uetchy/Repos/src/github.com/epic-team/epic-project

with cd, You can jump to created project:

$ cd $(gst new epic-project)

or with declare function:

newrepo() {
  cd $(gst new ${1})
}
rm

Remove git repository.

$ gst rm horrible-project
Remove? /Users/uetchy/Repos/src/github.com/uetchy/horrible-project
doctor

Health-check all repositories.

$ gst doctor
[bitbucket.org/uetchy/scent] git remote origin has changed:
   Expected:   github.com/uetchy/google-cloud-vision-raspi-sample
   Actual:       bitbucket.org/uetchy/scent
update

git pull to all repositories.

$ gst update
/Users/uetchy/Repos/src/github.com/uetchy/gst
Already up-to-date.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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