Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Support for CLI configuration in an external JSON file #80

Merged
merged 2 commits into from
Feb 10, 2016

Conversation

jeffposnick
Copy link
Contributor

R: @addyosmani @gauntface @wibblymat

I can see this as being useful for developers who prefer the CLI and want a reasonable way of specifying options, other than having to provide them all as command line flags.

It supports overriding the config file options with additional flags, making it easy to have, e.g., a dev build with --no-handle-fetch and --verbose set.

Closes #79

Finally, there's support for storing a complex configuration in an external
JSON file, using `--config <file>`. Any of the options from the file can be
overridden via a command-line flag. For example,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps include a very basic snippet of what the config file would look like. I just find it easier to grok what it means with an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@wibblymat
Copy link

A couple of nits and a suggestion you might disagree with :)

Looks like the code does the right thing, though.

@jeffposnick
Copy link
Contributor Author

Thanks for the review! I'm going to merge.

jeffposnick added a commit that referenced this pull request Feb 10, 2016
Support for CLI configuration in an external JSON file
@jeffposnick jeffposnick merged commit 54e0fd6 into master Feb 10, 2016
@jeffposnick jeffposnick deleted the cli-config-file branch February 10, 2016 00:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants