freezing-lamp-12123
07/23/2022, 12:26 PMbuild
, test
, fmt
, run
, and lint
encoded in pants? are the same knobs available for any targets?freezing-lamp-12123
07/23/2022, 12:41 PMPants natively understands the semantics of a variety of build actions. These include "test", "lint", "fmt", "check", "package", "publish", "run", "repl" and more. It understands what these commands do and how that affects caching and concurrency
enough-analyst-54434
07/23/2022, 12:47 PMenough-analyst-54434
07/23/2022, 12:48 PMenough-analyst-54434
07/23/2022, 12:59 PMDocumentation
in this case. The goal implementation then just asks Pants to produce Documentation
for the files and targets supplied on the command line. Then, for each type of file or target that you know how to produce Documentation
for, you write rules that do the real work, say a rule set that produces doc's via Sphinx for Python code. Those rules are written using the plugin API and they are also registered using the API.freezing-lamp-12123
07/23/2022, 1:02 PMcurved-television-6568
07/23/2022, 1:57 PMhelp
goal (and few experimental ones) which are truly “built-in” in a way that is not available to plugins.happy-kitchen-89482
07/23/2022, 5:20 PMfmt
goal (which delegates to language/tool-specific formatter implementations provided by plugins, including your custom plugins) knows that it has to delegate sequentially, so that formatters don't step on each others' toes, but the generic lint
goal knows that it can delegate in parallel because the linters aren't overwriting the files they lint.happy-kitchen-89482
07/23/2022, 5:21 PMfreezing-lamp-12123
07/23/2022, 6:57 PMcurved-television-6568
07/23/2022, 7:26 PMhappy-kitchen-89482
07/23/2022, 7:52 PMhappy-kitchen-89482
07/23/2022, 7:52 PMfmt
, test
, run
etc.happy-kitchen-89482
07/23/2022, 7:53 PMfreezing-lamp-12123
07/23/2022, 7:58 PMbusy-vase-39202
07/25/2022, 4:24 PM