mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 02:55:36 +02:00
watchexec: add example (#16415)
This commit is contained in:
parent
6084ef4f26
commit
814883b7c2
1 changed files with 4 additions and 0 deletions
|
@ -18,3 +18,7 @@
|
|||
- Call/restart `my_server` when any file in the current directory changes, sending `SIGKILL` to stop the child process:
|
||||
|
||||
`watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} {{my_server}}`
|
||||
|
||||
- Restart the execution of a command when any Java source file in the current directory changes, sending `SIGKILL` and only checking for updates every `n`ms:
|
||||
|
||||
`watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} --poll {{10000}} {{[-e|--exts]}} {{java}} {{command}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue