https://github.com/src-d/go-cli
CLI scaffolding for Go
https://github.com/src-d/go-cli
cli golang
Last synced: about 2 months ago
JSON representation
CLI scaffolding for Go
- Host: GitHub
- URL: https://github.com/src-d/go-cli
- Owner: src-d
- License: apache-2.0
- Created: 2018-07-19T16:11:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-21T11:10:27.000Z (almost 6 years ago)
- Last Synced: 2025-05-05T05:05:37.601Z (about 2 months ago)
- Topics: cli, golang
- Language: Go
- Homepage: https://godoc.org/gopkg.in/src-d/go-cli.v0
- Size: 4.75 MB
- Stars: 7
- Watchers: 4
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-cli [](https://godoc.org/gopkg.in/src-d/go-cli.v0) [](https://travis-ci.org/src-d/go-cli) [](https://ci.appveyor.com/project/mcuadros/go-cli) [](https://codecov.io/gh/src-d/go-cli)
A thin wrapper around common libraries used in our CLI apps (`jessevdk/go-flags`, `src-d/go-log`, `pprof`) to reduce boilerplate code and help in being more homogeneous with respect how our CLI work and look like.
It provides:
- Struct tags to specify command names and descriptions (see below).
- Default version subcommand.
- Default completion subcommand for bash completion.
- Flags and environment variables to setup logging with src-d/go-log.
- Flags and environment variables to setup a http/pprof endpoint.
- Signal handling.For further details, look at `doc.go`.
## License
Apache License Version 2.0, see [LICENSE](LICENSE).