Skip to main content

hook_command

Function hook_command 

Source
pub fn hook_command(mode: Mode, log_dir: Option<&str>, no_log: bool) -> String
Expand 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.