pub fn handle_analyze_command(
path: &Path,
extensions: Option<&[String]>,
exclude: Option<&[String]>,
with_metrics: bool,
format: &str,
) -> Result<(), Box<dyn Error>>Expand description
Handle the analyze command
Performs comprehensive codebase analysis including file counts, language detection, and code patterns.
§Arguments
path- The directory to analyzeextensions- Optional file extensions to filter byexclude- Optional directories to excludewith_metrics- Whether to show additional metricsformat- Output format (text/json)
§Examples
use codesearch::commands::analysis::handle_analyze_command;
use std::path::Path;
handle_analyze_command(Path::new("src"), None, None, false, "text").unwrap();