cli-template

A template for cross platform, cross CPU binary CLI tools

MIT License

Stars
1

cli-template

SHORT_DESCRIPTION

Quick links

Features

Usage


Binary

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

docker run -it --rm -v "/yourrepopath:/repository" qmcgaw/cli-template:v0.1.0 -help

Platforms supported

  • linux/amd64
  • linux/386
  • linux/arm64
  • linux/arm/v6
  • linux/arm/v7
  • linux/s390x
  • linux/ppc64le
  • linux/riscv64
  • If you need one more, please create an issue

Build it yourself

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