A template repository to build your first Golang Open Source app based cmdr.
powered by cmdr v1.11+.
- All you have to do is click the Use this template button upon this page.
- run! (
go run ./cli/app/cli/app/main.go
)
-
clone cmdr-go-starter as a template
# clone cmdr-go-starter as a template git clone https://github.com/hedzr/cmdr-go-starter.git new-repo cd new-repo git push git@github.com:yourname/new-repo.git +master:master
-
clone the
new-repo
to your working directory:# in the working directory of your new-repo cd ~/work git clone git@github.com:yourname/new-repo.git cd new-repo
-
do rename stuffs ...
To run the CLI app:
# go install -v github.com/swaggo/swag/cmd/swag
go generate ./... # run it once at least, for gen the swagger-doc files from skeletons
go run ./cli/your-app/main.go # build the CLI app
- cmdr v1.11.26+
Apache 2.0