snippetbashTip
pants — Fast, scalable, user-friendly, open-source build and developer workflow tool. More information: <htt
Viewed 0 times
commandpantscliopenfastuserscalablefriendly
Problem
How to use the
pants command: Fast, scalable, user-friendly, open-source build and developer workflow tool. More information: <https://www.pantsbuild.org/stable/docs/using-pants/command-line-help>.Solution
pants — Fast, scalable, user-friendly, open-source build and developer workflow tool. More information: <https://www.pantsbuild.org/stable/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 lintTypecheck only uncommitted files and their dependents:
pants --changed-since=HEAD --changed-dependents=transitive checkCreate 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 helpCode Snippets
List all targets
pants list ::Run all tests
pants test ::Fix, format, and lint only uncommitted files
pants --changed-since=HEAD fix fmt lintTypecheck only uncommitted files and their dependents
pants --changed-since=HEAD --changed-dependents=transitive checkCreate a distributable package for the specified target
pants package {{path/to/directory:target-name}}Context
tldr-pages: common/pants
Revisions (0)
No revisions yet.