Skip to content

Commit

Permalink
docstring += reminder that you can do set-like math on FileSets
Browse files Browse the repository at this point in the history
Bugs closed: 631

Reviewed at https://rbcommons.com/s/twitter/r/1584/
  • Loading branch information
lahosken authored and lahosken committed Jan 12, 2015
1 parent 2317659 commit 92bd195
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/python/pants/backend/core/wrapped_globs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class Globs(FilesetRelPathWrapper):
"""Returns Fileset containing matching files in same directory as this BUILD file.
E.g., ``sources = globs('*java'),`` to get .java files in this directory.
You can use "math" on the return value of ``globs()``. E.g., ``globs('*') - globs('*.java')`` gives
all files in this directory *except* ``.java`` files.
"""
wrapped_fn = Fileset.globs

Expand All @@ -47,6 +50,10 @@ class RGlobs(FilesetRelPathWrapper):
E.g., ``bundle().add(rglobs('config/*')),`` to bundle up all files in
the config, config/foo, config/foo/bar directories.
You can use "math" on the return value of ``rglobs()``. E.g.,
``rglobs('config/*') - rglobs('config/foo/*')`` gives all files under `config` *except*
those in ``config/foo``.
"""
wrapped_fn = Fileset.rglobs

Expand Down

0 comments on commit 92bd195

Please sign in to comment.