mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 03:53:33 +02:00
watchman: add main page (#16424)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
parent
9158ad593e
commit
48a7207117
1 changed files with 28 additions and 0 deletions
28
pages/common/watchman.md
Normal file
28
pages/common/watchman.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# watchman
|
||||
|
||||
> A service that watches files, and triggers actions when changes occur.
|
||||
> More information: <https://facebook.github.io/watchman/docs/cli-options>.
|
||||
|
||||
- Start watching a directory for changes:
|
||||
|
||||
`watchman watch {{path/to/directory}}`
|
||||
|
||||
- Add a trigger to run a command when files with a specified filename pattern in a watched directory change:
|
||||
|
||||
`watchman -- trigger {{path/to/watched_directory}} {{trigger_name}} '{{pattern}}' -- {{command}}`
|
||||
|
||||
- List all watched directories:
|
||||
|
||||
`watchman watch-list`
|
||||
|
||||
- Delete a watch on a directory:
|
||||
|
||||
`watchman watch-del {{path/to/watched_directory}}`
|
||||
|
||||
- List all triggers on a watched directory:
|
||||
|
||||
`watchman trigger-list {{path/to/watched_directory}}`
|
||||
|
||||
- Delete a trigger from a watched directory:
|
||||
|
||||
`watchman trigger-del {{path/to/watched_directory}} {{trigger_name}}`
|
Loading…
Add table
Reference in a new issue