No description
- Go 97.4%
- Dockerfile 2.6%
| .forgejo/workflows | ||
| .vscode | ||
| cmd | ||
| internal/aes | ||
| resources/etc | ||
| tests | ||
| .gitignore | ||
| .golangci.yaml | ||
| .goreleaser.yml | ||
| CLAUDE.md | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| mise.toml | ||
| README.md | ||
| Taskfile.yml | ||
| Taskfile_dev.yml | ||
template-cli
template-cli is a template project to build a cli with Go.
Clone it with:
# install gonew
go install golang.org/x/tools/cmd/gonew@latest
# use gonew to create your project based on this template
gonew git.sylvlab.fr/sylvain/test gitplatform.com/username/awesome_new_project
cd awesome_new_project
git init
git add .
git remote add origin git@gitplatform.com:username/awesome_new_project
git push -u origin master
Getting started
Usage is quite simple :
$ ./template-cli -h
...
Install
From binary
Download the binary in the release section.
From Docker image
Docker registry is:
Deployment with docker-example
!TODO
Deployment iwth kubernetes manifests
!TODO
Deployment with helm
!TODO
Development
This project is using :
- golang
- task for development
- docker
- docker buildx
- docker manifest
- goreleaser
- venom : Tests
- pre-commit
There are hooks executed in the precommit stage. Once the project cloned on your disk, please install pre-commit:
brew install pre-commit
Install tools:
task dev:install-prereq
And install the hooks:
task dev:install-pre-commit
If you like to launch manually the pre-commmit hook:
task dev:pre-commit
Tests
Tests are done with venom.
cd tests
venom run