Skip to content

A SKA Template to bootstrap a general purpose golang CLI template for Github and Gitlab

License

Notifications You must be signed in to change notification settings

gchiesa/ska-golang-cli-template

 
 

Repository files navigation

{{ .appName }}

{{ .appDescription }}

Demo Application

$> {{ .appName }} -h
{{ .appName }} project template demo application

Usage:
  {{ .appName }} [flags]
  {{ .appName }} [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  example     example subcommand which adds or multiplies two given integers
  help        Help about any command
  version     golang-cli-template version

Flags:
  -h, --help   help for golang-cli-template

Use "{{ .appName }} [command] --help" for more information about a command.
$> {{ .appName }} example 2 5 --add
7

$> {{ .appName }} example 2 5 --multiply
10

Makefile Targets

$> make
bootstrap                      install build deps
build                          build golang binary
clean                          clean up environment
cover                          display test coverage
docker-build                   dockerize golang application
fmt                            format go files
help                           list makefile targets
install                        install golang binary
lint                           lint go files
pre-commit                     run pre-commit hooks
run                            run the app
test                           display test coverage

Contribute

If you find issues in that setup or have some nice features / improvements, I would welcome an issue or a PR :)

Original Credits

This template is based on the boilerplate from https://github.com/FalcoSuessgott/golang-cli-template

About

A SKA Template to bootstrap a general purpose golang CLI template for Github and Gitlab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 73.2%
  • Go 22.3%
  • Makefile 3.7%
  • Other 0.8%