Last built 10 months ago using go version go1.6.2 linux/amd64 and 120 seconds of time
Install this tool from our stable release channel instead of following the procedures here, unless you are making changes to this tool. To update this tool, just run
The availability of dependencies are tested just before its immediate use. If a required dependency is not found, an useful error message is printed and the calling process is terminated with an error code.
You can get the latest CLI source code with
go get -u github.com/wedeploy/cli
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Integration tests should be written as well.
The master branch of this repository on GitHub is protected: * force-push is disabled * tests MUST pass on Travis before merging changes to master * branches MUST be up to date with master before merging
Keep your commits neat. Try to always rebase your changes before publishing them.
goreportcard can be used online or locally to detect defects and static analysis results from tools such as go vet, go lint, gocyclo, and more.
Using go test and go cover are essential to make sure your code is covered with unit tests.
Some aliases you might find useful for development / testing:
alias gotest='go test -coverprofile=coverage.out && go tool cover -html coverage.out -o coverage.html'
alias i="go run $HOME/projects/gocode/src/github.com/wedeploy/cli/main.go $1"(i: development code, we: production binary)
alias goreport="open coverage.html"