Skip to content
Go Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.appveyor.yml
.gitignore
.travis.yml
LICENSE
MAINTAINERS
Makefile
README.md
addcommand.go
cli.go
cli_test.go
completion.go
completion_test.go
context.go
doc.go
log.go
log_test.go
pprof.go
profiler.go
profiler_test.go
version.go
version_test.go

README.md

go-cli GoDoc Build Status Build status codecov

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.

You can’t perform that action at this time.