Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 ./...
```