well, yes i am. without any additional magic it mi...
# development
w
well, yes i am. without any additional magic it might look like:
Copy code
class 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)
h
@witty-crayon-22786 the example seems to be using ListOptions and ListTargets interchangeably. Can you clarify? Is this a subsystem containing what we would today call task options?
w
Yea!
I actually got pretty close to having something I can post: will try to post it in about 30 mins
Almost no changes to Subsystem