witty-crayon-22786
08/19/2020, 8:30 PMaloof-angle-91616
08/19/2020, 8:31 PMIt's possible that rendering the Params of a Node would actually make for a good default here if we apply a strategy similar to the EngineAware trait, that would opt params in and out of the description. Because rendering:
format!("@rule {}({})", task.task.display_info.name, task.params)
...is almost a good representation. The issue is that it includes too much information. If we were to include/exclude types, and render a simplified version of the type, you might be able to get something like:
@rule coordinator_of_tests((OptionsBootstrapper(..), tests/python/pants_test/util:argutil))
aloof-angle-91616
08/19/2020, 8:32 PM