mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
reflex: add page (#4884)
This commit is contained in:
parent
02fddafbf6
commit
6b7587edb1
1 changed files with 24 additions and 0 deletions
24
pages/common/reflex.md
Normal file
24
pages/common/reflex.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# reflex
|
||||
|
||||
> Tool to watch a directory and rerun a command when certain files change.
|
||||
> More information: <https://github.com/cespare/reflex>.
|
||||
|
||||
- Rebuild with `make` if any file changes:
|
||||
|
||||
`reflex make`
|
||||
|
||||
- Compile and run Go application if any .go file changes:
|
||||
|
||||
`reflex --regex='{{\.go$}}' {{go run .}}`
|
||||
|
||||
- Ignore a directory when watching for changes:
|
||||
|
||||
`reflex --inverse-regex='{{^dir/}}' {{command}}`
|
||||
|
||||
- Run command when reflex starts and restarts on file changes:
|
||||
|
||||
`reflex --start-service=true {{command}}`
|
||||
|
||||
- Substitute the filename that changed in:
|
||||
|
||||
`reflex -- echo {}`
|
Loading…
Add table
Reference in a new issue