app-config icon indicating copy to clipboard operation
app-config copied to clipboard

Add support for a CLI ConfigSource

Open joelgallant opened this issue 4 years ago • 2 comments

A common thread in config libraries in other ecosystems is the ability to use CLI args as an augmentation / override. I think supporting a simple set of CLI flag types is basically in-line with app config. This may make sense as a separate NPM package, however. I'm fairly convinced that encryption and others will end up as separate packages at some point anyway.

joelgallant avatar Dec 05 '20 20:12 joelgallant

Simple pseudo-code from prototyping:

# this would merge all properties from CLI yargs parsed object
$yargs: true

# this would pull --foo=... option
$yargs: foo

Maybe $loadYargs like #142.

joelgallant avatar Apr 17 '21 20:04 joelgallant

Great idea! +1

pats avatar Aug 03 '23 11:08 pats