witty-crayon-22786
12/06/2018, 8:08 PMclass ListOptions(Subsystem):
"""Lists all targets matching the target specs.
If no targets are specified, lists all targets in the workspace.
"""
options_scope = 'list'
@classmethod
def register_options(cls, register):
+--- 9 lines: super(ListTargets, cls).register_options(register)-----------
def __init__(self, options):
super(ListTargets, self).__init__(*args, **kwargs)
self._provides = options.provides
self._provides_columns = options.provides_columns
self._documented = options.documented
@rule(ListOptions, [])
def list_options():
scoped_options = yield Get(ScopedOptions, Scope(str(ListOptions.options_scope)))
return ListOptions(scoped_options)
happy-kitchen-89482
12/07/2018, 2:16 AMwitty-crayon-22786
12/07/2018, 2:20 AM