Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthewdargan/watch
Run a command each time any file in the current directory is written
https://github.com/matthewdargan/watch
go golang nix nix-flake
Last synced: about 1 hour ago
JSON representation
Run a command each time any file in the current directory is written
- Host: GitHub
- URL: https://github.com/matthewdargan/watch
- Owner: matthewdargan
- License: bsd-3-clause
- Created: 2024-03-31T22:39:01.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-17T02:24:45.000Z (7 months ago)
- Last Synced: 2024-04-17T16:10:59.037Z (7 months ago)
- Topics: go, golang, nix, nix-flake
- Language: Nix
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Watch
Watch runs a command each time any file in the current directory is written.
Usage:
watch [-r] cmd [args...]
The `-r` flag causes watch to monitor the current directory and all
subdirectories for modifications.## Examples
Run tests on file changes in the current directory:
```sh
$ watch go test ./...
```Run tests on file changes recursively from the current directory:
```sh
$ watch -r go test ./...
```