watch

command module
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

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:

$ watch go test ./...

Run tests on file changes recursively from the current directory:

$ watch -r go test ./...

Documentation

Overview

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:

$ watch go test ./...

Run tests on file changes recursively from the current directory:

$ watch -r go test ./...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL