mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 07:46:23 +00:00
Update cheatsheets
This commit is contained in:
@@ -16,9 +16,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`journalctl --vacuum-time={{2d}}`
|
||||
|
||||
- [f]ollow new messages (like `tail -f` for traditional syslog):
|
||||
- Show only the last N li[n]es and [f]ollow new messages (like `tail -f` for traditional syslog):
|
||||
|
||||
`journalctl -f`
|
||||
`journalctl --lines {{N}} --follow`
|
||||
|
||||
- Show all messages by a specific [u]nit:
|
||||
|
||||
|
||||
37
tldr/pants
Normal file
37
tldr/pants
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add one or more extensions to the current project:
|
||||
|
||||
`quarkus extension add {{extension_name_1 extension_name_2 ...}}`
|
||||
`quarkus extension add {{extension_name1 extension_name2 ...}}`
|
||||
|
||||
- Build a container image using Docker:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user