Documentation
¶
Overview ¶
Package config applies settings from .acurl.yaml files and ACURL_* environment variables to command flags.
Precedence, highest first: command-line flags, environment variables, the config file, flag defaults.
Index ¶
Constants ¶
View Source
const FileName = ".acurl.yaml"
FileName is the per-project config file name.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply sets every flag in fs that was not given on the command line from the environment or, failing that, from c. Unknown config keys are returned as an error so typos do not go unnoticed.
func EnvName ¶
EnvName returns the environment variable for a flag: --cloak-threshold becomes ACURL_CLOAK_THRESHOLD.
Types ¶
Click to show internal directories.
Click to hide internal directories.