An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/src-d/go-cli

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.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20190821111025-f9dec40d74d8
over 6 years ago
Versions
1
Dependent Repos
1
Past Dependents
Include Past Dependents

Check this option to include packages that no longer depend on this package in their latest version but previously did.

Filter
Filter by Kind
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/src-d/go-cli
spec
License Apache-2.0
Namespace github.com/src-d
First Release over 6 years ago
Last Synced 3 days ago
Keywords
cli golang
Repository
Stars 8 on GitHub
Forks 8 on GitHub
Rankings on proxy.golang.org
Overall Top 8.0%
Dependent repos Top 4.7%
Forks Top 7.1%