pants: add page (#12701)

pull/28/head
SJ 2024-05-03 09:48:28 -04:00 committed by GitHub
parent a97535491d
commit 56ad4aa330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 0 deletions

32
pages/common/pants.md Normal file
View File

@ -0,0 +1,32 @@
# pants
> Fast, scalable, user-friendly, open-source build and developer workflow tool.
> More information: <https://www.pantsbuild.org/2.20/docs/using-pants/command-line-help>.
- 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`