proxy.golang.org : github.com/mrmarble/furagu
Package furagu provides a simple wrapper around the flag package to support environment variable defaults. This package is designed to be used in a CLI application where you want to provide default values for flags from environment variables. It allows you to define flags and then parse them, using the environment variable values if they are set. The environment variable names are generated by taking the flag name, converting it to uppercase, and prefixing it with the provided prefix. For example, if you define a flag with the name "foo" and a prefix of "MYAPP", the environment variable will be "MYAPP_FOO".
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/mrmarble/furagu
Keywords:
cli
, default
, environment-variables
, flag
License: MIT
Latest release: 5 months ago
First release: 5 months ago
Namespace: github.com/mrmarble
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/MrMarble
Last synced: 6 days ago