forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalizes the "EXTEND" functionality of ListValueComponent to "MODIFY". Each ListValueComponent now stores a list of appends and a list of filters, and these get applied when the final `val` is requested. Introduces two new forms of syntax for values of list options: 1. -['foo', 'bar'] filters those values from the running list computation. 2. ...,...,... splits the value on the commas and merges the results of evaluating the .... The latter allows you to both append to and filter a list in, say, pants.ini: ``` list_option: -[1,2,3],+[4,5,6] ``` Testing Done: Added tests of the new syntax and functionality. All options tests pass. Full CI passes here: http://jenkins.pantsbuild.org/job/pantsbuild/job/pants/branch/PR-3583/ Reviewed at https://rbcommons.com/s/twitter/r/3997/
- Loading branch information
Showing
5 changed files
with
178 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters