Categorygithub.com/sgaunet/template-cli
modulepackage
0.1.0
Repository: https://github.com/sgaunet/template-cli.git
Documentation: pkg.go.dev

# README

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 github.com/sgaunet/template-cli gitplatform.com/username/awesome_new_project
cd awesome_new_project
git init
git add .
git remote add origin [email protected]: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 :

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

# Packages

No description provided by the author