pub async fn cmd(args: WatchArgs) -> Result<()>Expand description
Main entry point for the watch command.
Acts as a dispatcher that routes to the appropriate operation based on the provided command-line arguments, handling the three main operational modes.
§Arguments
args- Parsed command-line arguments specifying the operation mode
§Returns
Returns Ok(()) on successful operation completion, or an error if
the requested operation fails.