Skip to content

Add support for a CLI ConfigSource #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joelgallant opened this issue Dec 5, 2020 · 2 comments
Open

Add support for a CLI ConfigSource #43

joelgallant opened this issue Dec 5, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@joelgallant
Copy link
Contributor

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 joelgallant added the enhancement New feature or request label Dec 5, 2020
@joelgallant joelgallant changed the title Add support for a "CLI Config Source" (parse command line options) Add support for a CLI ConfigSource (command line options) Feb 13, 2021
@joelgallant joelgallant added this to the Version 3 milestone Feb 13, 2021
@joelgallant joelgallant removed this from the Version 3 milestone Apr 9, 2021
@joelgallant joelgallant changed the title Add support for a CLI ConfigSource (command line options) Add support for a CLI ConfigSource Apr 16, 2021
@joelgallant
Copy link
Contributor Author

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.

@pats
Copy link

pats commented Aug 3, 2023

Great idea! +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants