crab_clean/
lib.rs

1//! # crabclean CLI
2//!
3//! A command-line tool for cleaning up duplicate and unused files.
4//!
5//! ## Features
6//!
7//! - Duplicate file detection using SHA-256 hashing
8//! - Unused file cleanup based on access time
9//! - Interactive deletion with progress tracking
10//! - Cross-platform support
11//!
12//! ## Example
13//!
14//! ```rust
15//! use crab_clean::core::algorithms::duplicate_algo::get_duplicates;
16//! use std::path::PathBuf;
17//!
18//! let files = vec![PathBuf::from("file1.txt"), PathBuf::from("file2.txt")];
19//! let duplicates = get_duplicates(&files);
20//! ```
21
22pub mod cli; // Command-line interface handling
23pub mod config; // Configuration management
24pub mod core; // Core business logic (scanning, analyzing)
25pub mod error; // Error types and handling
26pub mod utils; // Utility functions
27
28// Re-export commonly used types
29pub use config::settings;
30pub use error::CrabcleanError;