2025-03-14 21:59:59 -06:00
|
|
|
# pants
|
|
|
|
|
|
|
|
|
|
> Fast, scalable, user-friendly, open-source build and developer workflow tool.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://www.pantsbuild.org/stable/docs/using-pants/command-line-help>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List all targets:
|
|
|
|
|
|
|
|
|
|
`pants list ::`
|
|
|
|
|
|
|
|
|
|
- Run all tests:
|
|
|
|
|
|
|
|
|
|
`pants test ::`
|
|
|
|
|
|
|
|
|
|
- Fix, format, and lint only uncommitted files:
|
|
|
|
|
|
|
|
|
|
`pants --changed-since=HEAD fix fmt lint`
|
|
|
|
|
|
|
|
|
|
- Typecheck only uncommitted files and their dependents:
|
|
|
|
|
|
|
|
|
|
`pants --changed-since=HEAD --changed-dependents=transitive check`
|
|
|
|
|
|
|
|
|
|
- Create a distributable package for the specified target:
|
|
|
|
|
|
|
|
|
|
`pants package {{path/to/directory:target-name}}`
|
|
|
|
|
|
|
|
|
|
- Auto-generate BUILD file targets for new source files:
|
|
|
|
|
|
|
|
|
|
`pants tailor ::`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`pants help`
|