Note
This repository is a template for Golang based CLIs. To use it:
git clone [email protected]:kilianc/base-golang-cli.git <your-cli-name>
- edit the
BINARY_NAME
value in theMakefile
to<your-cli-name>
- run
make rename-cli
TBD - Description of this project
❯ bin/cli-name
put ascii art here
v0.0.1
• starting `cli-name` (description)
• press ctrl+c to stop
With go install
go install https://github.com/kilianc/cli-name/cmd/[email protected]
With docker
docker run --rm -it cli-name:v0.0.1 --version
With curl
# change the os (linux or darwin) and arch (amd64 or arm64) based on your machine
curl -O https://https://github.com/kilianc/cli-name/releases/download/v0.0.1/cli-name-darwin-arm64.tar.gz
tar -xzf cli-name-darwin-arm64.tar.gz
./cli-name --version
Note
TODO
These are the usual suspects
make run
make run-watch
make build
make test
make cover.html
After running make build
the binary available in the bin/
folder
bin/cli-name --version
If you prefer to build and run cli-name
in a docker container, just on of these commands
make docker-build
make docker-run