Top 1.4% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 6.9% forks on proxy.golang.org
proxy.golang.org : gopkg.in/src-d/go-cli.v0
Package cli provides scaffolding for CLI applications. It is a convenience wrapper for jessevdk/go-flags reducing boilerplate code. The main entry point is the App type, created with the New function. It provides: Commands are defined with structs. For the general available struct tags, refer to jessevdk/go-flags documentation at https://github.com/jessevdk/go-flags. Additionally, every command struct must embed PlainCommand directly, or indirectly through other struct (e.g. Command). The embedded field must be defined with the struct tags name, short-description and long-description. For example: This will also work if nested: Each defined command must be added to the application with the AddCommand function. Signal handling is setup for any cancellable command. Cancellable commands implement the ContextCommander interface instead of flags.Commander. See full examples in the examples subpackage.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/gopkg.in/src-d/go-cli.v0
Keywords:
cli
, golang
License: Apache-2.0
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: gopkg.in/src-d
Dependent packages: 13
Dependent repositories: 2,141
Stars: 8 on GitHub
Forks: 8 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago