Optionally use a whitelist of config on exporting. #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The --ignore-list option is very handy for excluding config you know about, but I reckon just as important a use case is for only including config you want to manage (i.e. whitelisting config as opposed to blacklisting as currently). For example, a client might set up a new view, vocabulary, image style, or node type, and you might allow that, but you can't necessarily know the config they've created in order to add it to your ignore list.
Instead, in this workflow, you actually only care about managing a known list of config, so an option could be used to switch the cexy command to only export that config that matches against that list?
I reckon a new option could be used to get this suggested whitelisting behaviour:
Setting both a partial-list and an ignore-list would mean only things in the partial list and not in the ignore list get exported. Or could anyone suggest a better way of defining/naming the options?
(Originally raised as #2)