gst

command module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: MIT Imports: 15 Imported by: 0

README

gst: ghq support toolbox

Build Status

Install

❯ go get github.com/uetchy/gst

with Homebrew:

❯ brew install uetchy/gst/gst

Usage

gst list or gst

List all of repositories changed git status

❯ gst
/Users/uetchy/Repos/src/github.com/uetchy/cabret
-- 4 hours ago
A  .eslintrc
M  .gitignore
A  app/ArticleList.jsx
A  app/Header.jsx
A  app/app.jsx
M  index.css
M  index.html
M  index.js
M  package.json

/Users/uetchy/Repos/src/github.com/uetchy/gst
-- 3 minutes ago
A  changelog.md
R  gst.go -> main.go

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 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 awesome-project
/Users/uetchy/Repos/src/github.com/uetchy/awesome-project
❯ gst new epic-team/awesome-project
/Users/uetchy/Repos/src/github.com/epic-team/awesome-project

with cd, You can jump to created project:

❯ cd $(gst new awesome-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 for 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 for 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