Skip to main content

run_watch

Function run_watch 

Source
pub fn run_watch(config: WatchConfig) -> Result<()>
Expand description

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).