def main_filespecs(): build_root, goals, args = pop_build_root_and_goals( '[build root path] [filespecs]*', sys.argv[1:]) # Create PathGlobs for each arg relative to the buildroot. path_globs = [PathGlobs.create(Files, '', globs=[arg]) for arg in args] visualize_build_request(build_root, goals, path_globs)
def main_filespecs(): build_root, goals, args = pop_build_root_and_goals( '[build root path] [filespecs]*', sys.argv[1:]) # Create a PathGlobs object relative to the buildroot. path_globs = PathGlobs.create('', globs=args) visualize_build_request(build_root, BuildRequest(goals=goals, subjects=[path_globs]))
def path_globs(self): """Creates a `PathGlobs` object for the files held by these Sources. This field may be projected to request the content of the files for this Sources object. """ return PathGlobs.create(self.spec_path, files=self.files, globs=self.globs, rglobs=self.rglobs, zglobs=self.zglobs)
def path_globs(self): """Creates a `PathGlobs` object for the files held by these Sources. This field may be projected to request the content of the files for this Sources object. """ return PathGlobs.create(self.spec_path, files=self.files, globs=self.globs, rglobs=self.rglobs, zglobs=self.zglobs)
def descendant_addresses_to_globs(descendant_addresses): """Given a DescendantAddresses object, return a PathGlobs object for matching directories.""" return PathGlobs.create(Dirs, descendant_addresses.directory, globs=['.', '*', '**/*'])
def main_filespecs(): build_root, goals, args = pop_build_root_and_goals("[build root path] [filespecs]*", sys.argv[1:]) # Create a PathGlobs object relative to the buildroot. path_globs = PathGlobs.create("", globs=args) visualize_build_request(build_root, goals, [path_globs])
def main_filespecs(): build_root, goals, args = pop_build_root_and_goals('[build root path] [filespecs]*', sys.argv[1:]) # Create PathGlobs for each arg relative to the buildroot. path_globs = [PathGlobs.create('', globs=[arg]) for arg in args] visualize_build_request(build_root, goals, path_globs)
def main_filespecs(): build_root, goals, args = pop_build_root_and_goals('[build root path] [filespecs]*', sys.argv[1:]) # Create a PathGlobs object relative to the buildroot. path_globs = PathGlobs.create('', globs=args) visualize_build_request(build_root, BuildRequest(goals=goals, subjects=[path_globs]))
def descendant_addresses_to_globs(descendant_addresses): """Given a DescendantAddresses object, return a PathGlobs object for matching directories.""" return PathGlobs.create(Dirs, descendant_addresses.directory, globs=['.', '*', '**/*'])