Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-02 00:21:15 +00:00
parent fde4de0db5
commit 922b1aa234
102 changed files with 288 additions and 216 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# reflex
> Watch a directory and rerun a command when certain files change.
> More information: <https://github.com/cespare/reflex>.
> More information: <https://github.com/cespare/reflex#usage>.
- Rebuild with `make` if any file changes:
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
- Compile and run Go application if any `.go` file changes:
`reflex --regex='{{\.go$}}' {{go run .}}`
`reflex {{[-r|--regex]}} '{{\.go$}}' {{go run .}}`
- Ignore a directory when watching for changes:
`reflex --inverse-regex='{{^dir/}}' {{command}}`
`reflex {{[-G|--inverse-regex]}} '{{^dir/}}' {{command}}`
- Run command when reflex starts and restarts on file changes:
`reflex --start-service=true {{command}}`
`reflex {{[-s|--start-service]}} true {{command}}`
- Substitute the filename that changed in: