1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # Utility Modules
//!
//! This module provides shared utility functions used throughout RepoLens.
//!
//! ## Submodules
//!
//! - [`command`] - Shell command execution utilities
//! - [`language_detection`] - Programming language detection from file extensions
//! - [`permissions`] - File system permission checking
//! - [`prerequisites`] - System prerequisites validation
//! - [`timing`] - Audit timing and performance measurement
//!
//! ## Language Detection
//!
//! Detect programming languages in a repository:
//!
//! ```rust,no_run
//! use repolens::utils::detect_languages;
//! use repolens::scanner::Scanner;
//! use std::path::PathBuf;
//!
//! let scanner = Scanner::new(PathBuf::from("."));
//! let languages = detect_languages(&scanner);
//! for lang in &languages {
//! println!("Found language: {:?}", lang);
//! }
//! ```
//!
//! ## Timing
//!
//! Measure audit performance:
//!
//! ```rust
//! use repolens::utils::{Timer, format_duration};
//!
//! let timer = Timer::start();
//! // ... do work ...
//! let duration = timer.elapsed();
//! println!("Completed in {}", format_duration(duration));
//! ```
pub use ;
pub use ;