Update cheatsheets

This commit is contained in:
ivuorinen
2024-05-04 00:13:30 +00:00
parent 2e1b3b0570
commit 65fd37420c
3 changed files with 40 additions and 3 deletions

View File

@@ -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
View 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`

View File

@@ -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: