conf package:hledger
Read extra CLI arguments from a hledger config file.
hledger CLI's --conf/--no-conf flags.
Get the possibleConfFiles which exist, based on the current directory.
Fetch all the arguments/options defined in a section with this name,
if it exists. This should be "general" for the unnamed first section,
or a hledger command name.
Get the highest precedence config file, based on the current
directory.
Get the highest precedence local config file: a config file in the
current directory or above, that is not a user-wide config file.
Get the highest precedence user-wide config file, based on the current
directory. (This may not be the active config file.)
Try to read a hledger config from a config file specified by --conf,
or the first config file found in any of several default file paths.
If --no-conf was used, or if no file was specified or found, this
returns a null Conf. If a specified file, or the first file found, can
not be read or parsed, this returns an error message. Otherwise this
returns the parsed Conf, and the file path.
Like getConf but throws an error on failure.
Get the possibleUserConfFiles which exist, based on the current
directory.