pub fn hook_command(mode: Mode, log_dir: Option<&str>, no_log: bool) -> StringExpand description
The hook command string written into settings for mode. Tool-call
logging is on by default (to .ct/tclog/), so the bare command already
logs; no_log bakes in --no-log to disable it, and log_dir bakes in a
--log-dir PATH override. A path with whitespace is double-quoted to
survive the shell the hook runs under.