An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/docopt/docopt-go

Package docopt parses command-line arguments based on a help message. Given a conventional command-line help message, docopt processes the arguments. See https://github.com/docopt/docopt#help-message-format for a description of the help message format. This package exposes three different APIs, depending on the level of control required. The first, simplest way to parse your docopt usage is to just call: This will use os.Args[1:] as the argv slice, and use the default parser options. If you want to provide your own version string and args, then use: If the last parameter (version) is a non-empty string, it will be printed when --version is given in the argv slice. Finally, we can instantiate our own docopt.Parser which gives us control over how things like help messages are printed and whether to exit after displaying usage messages, etc. In particular, setting your own custom HelpHandler function makes unit testing your own docs with example command line invocations much more enjoyable. All three of these return a map of option names to the values parsed from argv, and an error or nil. You can get the values using the helpers, or just treat it as a regular map: Additionally, you can `Bind` these to a struct, assigning option values to the exported fields of that struct, all at once.
3 versions
Latest release: plus de 7 ans ago
650 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/docopt/docopt-go

Dependent Repos 6

1024pix/steampipe-plugin-learningcontent
Steampipe plugin to query LCMS content

Size: 101 ko - Last synced: 5 jours ago - Pushed: plus d'un an ago

swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi

Last synced: 8 mois ago - Pushed: environ un an ago

betagouv/sealed-secrets Fork of bitnami-labs/sealed-secrets
A Kubernetes controller and tool for one-way encrypted Secrets

Size: 19,2 Mo - Last synced: 2 jours ago - Pushed: presque 3 ans ago

radiofrance/helm-chart-sonarqube Fork of SonarSource/helm-chart-sonarqube

Size: 2,99 Mo - Last synced: 8 mois ago - Pushed: 10 mois ago

fantastic-fanfare/adorable_alien

Last synced: 8 mois ago

InseeFrLab/onyxia-cli
WIP

Size: 53,7 ko - Last synced: 1 jour ago - Pushed: 8 jours ago

InseeFrLab/onyxia-onboarding
Onboarding for the Onyxia datalab

Size: 68,4 ko - Last synced: 1 jour ago - Pushed: plus d'un an ago

InseeFrLab/onyxia-onboarding-operator
An operator for onyxia's onboarding tasks

Size: 71,3 ko - Last synced: 1 jour ago - Pushed: plus d'un an ago

SocialGouv/secretgen-controller Fork of carvel-dev/secretgen-controller
secretgen-controller provides CRDs to specify what secrets need to be on Kubernetes cluster (to be generated or not)

Size: 30,4 Mo - Last synced: environ 14 heures ago - Pushed: environ un an ago

CEREMA/k3s-snapshots

Size: 6,12 Mo - Last synced: 5 jours ago - Pushed: environ 3 ans ago

CEREMA/k3-utils

Size: 6,15 Mo - Last synced: 5 jours ago - Pushed: environ 3 ans ago