2
1
Fork 0
Template for command line interface projects, best way to start and make automated script for something awesome.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
dancheg97 b15b7904f2
continuous-integration/drone/push Build is passing Details
updated flags for ease of usage
2 months ago
cmd updated flags for ease of usage 2 months ago
.drone.yml fixed build 4 months ago
.gitignore Initial commit 4 months ago
.golangci.yml fixed linter for workspace 4 months ago
LICENSE updated license 2 months ago
Makefile fixed linter for workspace 4 months ago
README.md fixed linter for workspace 4 months ago
dockerfile fixed linter for workspace 4 months ago
go.mod added logrus to dependencies 2 months ago
go.sum added logrus to dependencies 2 months ago
main.go added ability to get cli version using cobra 4 months ago

README.md

Go CLI template

Generic badge Generic badge Build Status

Example description.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Repository stack:

  • golangci-lint - linter config stored in root directory, already includes a lot of usefull linters, mostly commented with helpful descriptions of different linters. You can tune it for your personal needs.
  • drone - already written pipeline for drone-ci, which includes lint, test, build and pushing service to registry.
  • cobra - Cobra is a library providing a simple interface to create powerful modern CLI interfaces similar to git & go tools.
  • viper - Viper is a complete configuration solution for Go applications including 12-Factor apps. It is designed to work within an application, and can handle all types of configuration needs and formats.