Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
Lookup is the equivalent of os.LookupEnv, only you are able to provide the list of environment variables. To use this as os.LookupEnv would be used, simply call `env.Lookup("ENVIRONMENT_VARIABLE", os.Environ())`
func RequireListWithEnvFallback ¶
RequireListWithEnvFallback first checks the CLI for a flag with the required name. If this is empty, it falls back to taking the environment variable. Sadly, we cannot use cli.Flag.EnvVars for this due to it potentially leaking environment variables as default values in usage-errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.