The following assumes that you are using a MacBook. You may to tweak this for Linux and Windows.
- Clone the repo
brew install gobrew install cobragit checkout developbrew install goreleasermkdir -p svang/apicobra init svang/api --pkg-name github.com/svang/svangapicd svang/api- Create run and version command
cobra add runandcobra add version
Define module path
go mod init github.com/svang/svangapi
go install
go run main.go
go run main.go run --> run command
Make sure your PATH env variable has go/bin included (export PATH=$PATH:$(go env GOPATH)/bin))
make installto test the tool on your MacBook or Windows laptop.make build-linuxto build the GO binary for Linux.make send-linuxto scp the tool to your target RHEL/CentOS machine. You need to modift the Makefile.upload.sh- used by the developers of this tool to release the binary to GitHub.