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

Top 3.0% on proxy.golang.org
Top 1.2% dependent packages on proxy.golang.org
Top 1.4% dependent repos on proxy.golang.org
Top 5.5% forks on proxy.golang.org

proxy.golang.org : github.com/jaffee/commandeer

Package commandeer sets up command line flags based on the fields and field tags of a struct. It helps ease common pains of CLI app development by allowing you to unobtrusively define flags in a library package while having a tiny main package which calls commandeer.Run* or commandeer.Flags. Run is the usual interface to commandeer, but it requires you to pass in a struct which has a "Run() error" method. RunArgs works similarly, but allows you to pass in the args to be parsed and the flag set to be used. In cases where your struct doesn't have a Run() method, or you don't want to call it, the Flags() function takes in a FlagSet and sets the flags based on the passed in struct in the same way.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/jaffee/commandeer
License: MIT
Latest release: over 2 years ago
First release: over 7 years ago
Namespace: github.com/jaffee
Dependent packages: 17
Dependent repositories: 15
Stars: 163 on GitHub
Forks: 15 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 11 days ago

    Loading...
    Readme
    Loading...