Skip to content

A general purpose golang CLI template for Github and Gitlab

License

Notifications You must be signed in to change notification settings

mprimi/golang-cli-template

Repository files navigation

This is Marco's fork of:

golang-cli-template: A general purpose project template for golang CLI applications

The upstream version has a lot of nice features I dropped. This is a stripped down version for personal use.

Removed in this fork:

  • A well-written README, including live badges
  • GH Pages with Jekyll theme and assets
  • GitLab CI
  • Install script
  • GH Semantic Releaser
  • Docker
  • deb, rpm, apk
  • Pre-commit checks
  • Codecov
  • Dropped testify dependency
  • Replace cobra (~300 indirect dependencies!), with subcommands

Modified:

  • Makefile
  • Subcommands and tests

Loose ends:

  • Dig into linting and coverage settings
  • Move main from top-level directory into cmd/<name>, example

Install from source:

go install github.com/mprimi/golang-cli-template@vX.Y.Z

Assuming $GOPATH/bin is in $PATH, run with

golang-cli-template