diff --git a/tldr/linux/journalctl b/tldr/linux/journalctl index ed0f4885..1a81f0ed 100644 --- a/tldr/linux/journalctl +++ b/tldr/linux/journalctl @@ -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: diff --git a/tldr/pants b/tldr/pants new file mode 100644 index 00000000..94faf917 --- /dev/null +++ b/tldr/pants @@ -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: . + +- 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` diff --git a/tldr/quarkus b/tldr/quarkus index d4c995d6..b8a823d2 100644 --- a/tldr/quarkus +++ b/tldr/quarkus @@ -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: