HASHER_VERSION=v0.1.2
INSTALL_DIR=~/bin
curl -sLo - https://github.com/little-forest/hasher/releases/download/${HASHER_VERSION}/hasher_linux_x86_64.tar.gz \
| tar -C ${INSTALL_DIR} -zxv
cd src
goreleaser build -f ../.goreleaser.yml --clean --snapshot
This repository allows code checking before committing locally by using pre\-commit
.
- Install pre-commit
- Install hook script by pre-commit
pre-commit install
- Install golangci-lint
pre-commit
checks only staged files. If you want to check all files, please do the following.
pre-commit run -a
Install cobra-cli.
go install github.com/spf13/cobra-cli@latest
Make sub-command template.
cd src
cobra-cli add [SUB_COMMNAD_NAME]