Closed AgentEnder closed 1 month ago
Ability to load flags from config files by default.
Cli overrides env overrides config should be order of precedence
In yargs there are 2 equivalent flags
.config
.pkgConf
.config takes either a string path to file that would be required, a resolved object, or a function callback to load the config file
.pkgConf is a shortcut for loading config from package.json specifically.
I don't think we should implement .pkgConf specifically, we can always provide a set of builtin callbacks to pass to .config instead.
Fixed in #23
Ability to load flags from config files by default.
Cli overrides env overrides config should be order of precedence
In yargs there are 2 equivalent flags
.config
.pkgConf
.config
takes either a string path to file that would be required, a resolved object, or a function callback to load the config file.pkgConf
is a shortcut for loading config from package.json specifically.I don't think we should implement
.pkgConf
specifically, we can always provide a set of builtin callbacks to pass to .config instead.