thoughts-tool 0.12.0

Flexible thought management using filesystem mounts for git repositories
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod claude_settings;
pub mod git;
pub mod locks;
pub mod logging;
pub mod paths;
pub mod validation;

/// Format bytes as human-readable size.
pub fn human_size(bytes: u64) -> String {
    match bytes {
        0 => "0 B".into(),
        1..=1023 => format!("{bytes} B"),
        1024..=1_048_575 => format!("{:.1} KB", (bytes as f64) / 1024.0),
        _ => format!("{:.1} MB", (bytes as f64) / (1024.0 * 1024.0)),
    }
}