gocd

command module
v0.0.0-...-e154af1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

README

Gocd

Quick change directory in GOPATH

Build & Install

go get -u github.com/vinceprignano/gocd
echo "source $(gocd -shellinit)" >> ~/.bash_profile

Usage

gocd [directory] Where directory can be any directory inside in your GOPATH.

Using gocd with no arguments will change the current working directory in $GOPATH/src.

Example

If you have gocd in your $GOPATH/src folder. You will be able to cd into the project directory by doing:

$ gocd gocd
-> Will change directory in $GOPATH/src/github.com/vinceprignano/gocd

In case of multiple directories with the same name you will be required to choose one from a list using gocd directory:index.

$ gocd example
Found multiple folders with this name:
	0: /Users/vincenzo/src/github.com/b2aio/typhon/example
	1: /Users/vincenzo/src/github.com/kylelemons/go-gypsy/example
	2: /Users/vincenzo/src/github.com/qur/withmock/example
	5: /Users/vincenzo/src/github.com/wsxiaoys/terminal/example

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