https://github.com/yakiyo/go-template
My own template repository for cli apps with Go
https://github.com/yakiyo/go-template
brew cli go go-template goreleaser just template
Last synced: 2 months ago
JSON representation
My own template repository for cli apps with Go
- Host: GitHub
- URL: https://github.com/yakiyo/go-template
- Owner: Yakiyo
- License: mit
- Created: 2023-08-23T17:17:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-22T06:16:58.000Z (over 1 year ago)
- Last Synced: 2025-03-30T08:26:16.287Z (2 months ago)
- Topics: brew, cli, go, go-template, goreleaser, just, template
- Language: Go
- Homepage:
- Size: 76.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# go-template
[](https://github.com/Yakiyo/go-template/actions/workflows/ci.yml)  My own template repository for cli apps with Go
Some of the code structure and ideas were taken from [metafates/go-template](https://github.com/metafates/go-template/).
## Features
- use cobra for command line
- integrated viper with cobra to read config options first from cli, then use config files, else use defaults
- separate packages for each stuff for easier modification
- pretty logging with [charmbracelet/log](https://github.com/charmbracelet/log)
- allow setting logging levels from cli
- allow enabling/disabling colors from cli
- use [just](https://github.com/casey/just) for running tasks