sf_cli/
lib.rs

1//! SF-CLI - Secure File Encryption CLI/TUI Tool
2//!
3//! A secure file encryption tool with password protection, supporting both
4//! command-line and terminal user interface modes.
5
6pub mod crypto;
7pub mod compression;
8pub mod file_ops;
9pub mod progress;
10pub mod models;
11pub mod tui;
12pub mod watch;
13pub mod ssh_keys;
14pub mod hybrid_crypto;
15
16pub use models::*;
17
18/// Application result type
19pub type Result<T> = anyhow::Result<T>;
20
21/// Application configuration
22#[derive(Debug, Clone)]
23pub struct Config {
24    /// Enable compression along with encryption
25    pub compress: bool,
26    /// Show progress for operations
27    pub show_progress: bool,
28    /// Buffer size for file operations (in bytes)
29    pub buffer_size: usize,
30}
31
32impl Default for Config {
33    fn default() -> Self {
34        Self {
35            compress: false,
36            show_progress: true,
37            buffer_size: 64 * 1024, // 64KB buffer
38        }
39    }
40}