A template for cross platform, cross CPU binary CLI tools
MIT License
SHORT_DESCRIPTION
VERSION=v0.1.0
ARCH=amd64
wget -O cli-template "https://github.com/qdm12/cli-template/releases/download/$VERSION/cli-template_$VERSION_linux_$ARCH"
chmod 500 cli-template
./cli-template -help
docker run -it --rm -v "/yourrepopath:/repository" qmcgaw/cli-template:v0.1.0 -help
linux/amd64
linux/386
linux/arm64
linux/arm/v6
linux/arm/v7
linux/s390x
linux/ppc64le
linux/riscv64
Install Go, then either
Download it on your machine:
go get github.com/qdm12/cli-template/cmd/cli-template
Clone this repository and build it:
GOARCH=amd64 go build cmd/cli-template/main.go