//! CLI handler for the `watch` subcommand.
use crateWatchConfig;
use crateexit_codes;
use crateWatchError;
use Result;
/// Run the watch command with the given configuration.
///
/// Exits the process with [`exit_codes::CHANGES_DETECTED`] (1) when the loop
/// stops because `--exit-on-change` observed a change; returns `Ok(())` (exit
/// 0) on a clean shutdown. Operational errors propagate as `Err` for `main()`
/// to map to exit 3. The gate exit mirrors how `main()` handles the other
/// verdict gates (`process::exit` on a non-zero code from the handler).