Skip to main content

run_cli

Function run_cli 

Source
pub fn run_cli() -> Result<()>
Expand description

Main entry point for the Claude Hook Advisor application.

Parses command-line arguments and dispatches to the appropriate mode:

  • --hook: Run as a Claude Code PreToolUse hook (reads JSON from stdin)
  • --install: Interactive installer to set up project configuration
  • Default: Show usage information