cc-audit 3.2.14

Security auditor for Claude Code skills, hooks, and MCP servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Handler for hook mode.

use crate::hook_mode;
use std::process::ExitCode;

/// Handle the `--hook-mode` flag.
///
/// This function runs cc-audit in hook mode, reading JSON from stdin
/// and writing a JSON response to stdout.
pub fn handle_hook_mode() -> ExitCode {
    let exit_code = hook_mode::run_hook_mode();
    ExitCode::from(exit_code as u8)
}