https://github.com/hedzr/cmdr-go-starter
a github template project to make new app based cmdr fastly and easily
https://github.com/hedzr/cmdr-go-starter
cmdr cmdrrc starter starter-project starter-template template
Last synced: 3 months ago
JSON representation
a github template project to make new app based cmdr fastly and easily
- Host: GitHub
- URL: https://github.com/hedzr/cmdr-go-starter
- Owner: hedzr
- License: apache-2.0
- Created: 2021-09-11T10:57:33.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T23:41:06.000Z (5 months ago)
- Last Synced: 2025-01-15T01:08:08.767Z (4 months ago)
- Topics: cmdr, cmdrrc, starter, starter-project, starter-template, template
- Language: Go
- Homepage:
- Size: 243 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# cmdr-go-starter
[](https://github.com/hedzr/cmdr-go-starter/actions/workflows/go.yml)
A template repository to build your first Golang Open Source app based [cmdr](https://github.com/hedzr/cmdr).
> powered by [cmdr](https://github.com/hedzr/cmdr) v1.11+.
## fast guide:
1. All you have to do is click the Use this template button upon this page.
2. run! (`go run ./cli/app/cli/app/main.go`)## with command-line:
### new repo
1. clone cmdr-go-starter as a template
```bash
# clone cmdr-go-starter as a template
git clone https://github.com/hedzr/cmdr-go-starter.git new-repo
cd new-repo
git push [email protected]:yourname/new-repo.git +master:master
```2. clone the `new-repo` to your working directory:
```bash
# in the working directory of your new-repo
cd ~/work
git clone [email protected]:yourname/new-repo.git
cd new-repo
```3. do rename stuffs ...
## Getting Started (For the generated golang project)
To run the CLI app:
```bash
# 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
```## Status
- cmdr v1.11.26+
-## LICENSE
Apache 2.0