watch

command module
v0.0.0-...-eccb786 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 11 Imported by: 0

README

watch

Implementation of the Unix watch command in go. This is for Windows users who aren't lucky enough to have it built in and who don't want to use WSL. Will NOT run on non Windows platforms because you should be using the natively provided watch command.

Building

go build

Command Line Options
Flag Description
-e Exit on non-zero return of command
-g Exit when output changes
-n # Interval in seconds (default 5)
-p Try to run at precise interval
-t Hide title bar
-x Run with command processor (cmd.exe/pwsh.exe/powershell.exe)
Exit codes
Code Description
1 Exit on error selected and watched command error'ed
2 Exit on change selected and watched command's output changed
3 Didn't include a command to run
4 Couldn't find command processor to run under
5 Not running on Windows

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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