Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dlclark/gb-run
Plugin to http://getgb.io to allow easy running of tools used to working with a $GOPATH
https://github.com/dlclark/gb-run
Last synced: 21 days ago
JSON representation
Plugin to http://getgb.io to allow easy running of tools used to working with a $GOPATH
- Host: GitHub
- URL: https://github.com/dlclark/gb-run
- Owner: dlclark
- License: gpl-2.0
- Created: 2015-12-17T02:39:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-24T22:06:08.000Z (over 8 years ago)
- Last Synced: 2024-08-05T15:05:11.315Z (4 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - gb-run - Plugin to http://getgb.io to allow easy running of tools used to working with a $GOPATH (Go)
README
# gb-run
Plugin to http://getgb.io to allow easy running of tools used to working with a $GOPATH## Installation
go get github.com/dlclark/gb-run/...
## Pre-reqs
go get github.com/constabulary/gb/...
## Usage
When you run the gb run command the environment is setup with the $GOPATH based on the current gb project and the first argument is executed. A common use would be to launch Sublime Text in a way that GoSublime ([see my fork for better goto def](http://github.com/dlclark/GoSublime/) will work with gb projectscd /my/project/source/folder/
gb run subl .Sublime text will open your gb project directory in the side bar and GoSublime will use the $GOPATH environment variable set by gb run for all its features (goto definition, find usages, on-save hooks, etc). Make sure you don't set a GOPATH in the Sublime settings file (GoSublime.sublime-settings under "env" : { "GOPATH" : "something" }) otherwise it won't pick it up from the environment.
## Read more
gb has its own site, [getgb.io](http://getgb.io/), head over there for more information.