pub fn list_locks(json: bool, watch: Option<Duration>) -> Result<()>Expand description
ktstr locks entry point. See module-level doc block above.
When watch is Some(interval), runs a redraw loop that prints
the snapshot, sleeps interval, and repeats until SIGINT. JSON
mode under --watch emits one JSON object per interval with a
trailing newline so streaming consumers can read frame-by-frame
via newline-delimited JSON.