cool-easter-32542
03/25/2023, 1:38 AMpeek, a list filter, a new goal shudder).
Example as a filter: pants --filter-goal-type=test list ::
Alternatively, maybe this functionality should be part of a BSP? Unsure.
Example of logging to the console:
oss/pants-plugins % pants list package
14:13:46.36 [INFO] Initialization options changed: reinitializing scheduler...
14:13:47.06 [INFO] Scheduler initialized.
14:13:47.09 [WARN] No targets were matched in goal `list`.
14:13:47.09 [WARN] No files or targets specified. The `package` goal works with these target types:
* archive
* pex_binary
* pyoxidizer_binary
* python_distribution
Please specify relevant file and/or target arguments. Run `pants --filter-target-type=archive,pex_binary,pyoxidizer_binary,python_distribution list ::` to find all applicable targets in your project, or run `pants --filter-target-type=archive,pex_binary,pyoxidizer_binary,python_distribution filedeps ::` to find all applicable files.
⏺ oss/pants-plugins % pants list ::
pants-plugins/experimental/swift/util_rules:util_rules
...
...
...
pants-plugins/experimental/swift/util_rules/compile.py
⏺ oss/pants-plugins % pants list package
14:14:02.99 [WARN] No targets were matched in goal `list`.
Note that the second call to list package doesn't show the same warning as the first call.
pantsbuild/pants