mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 22:00:52 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user