This program allows you to retrieve information about the container project form Red Hat Connect and trigger manual builds without needing to log in to the website.
go get github.com/sysdiglabs/rhc-manager
go install github.com/sysdiglabs/rhc-manager/cmd/rhc-manager
You can find your $GOPATH
with go env | grep GOPATH
Note: it's recommended to add $GOPATH/bin
to your $PATH
variable.
Get project info:
$GOPATH/bin/rhc-manager -id <project_id>
Trigger manual build:
$GOPATH/bin/rhc-manager -id <project_id> -b <build_tag>
You can execute the automated tests with:
go test -v
And also checkout the code coverage with:
go test -coverprofile cover.out
go tool cover -html cover.out