justrun 1.0.0

Just run it! A simple init system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use justrun::paths::TMP_PATHS;

pub fn cleanup() -> bool {
    let mut success = true;
    for path in TMP_PATHS {
        if std::path::Path::new(path).exists() {
            std::fs::remove_file(path).unwrap_or_else(|err| {
                eprintln!(
                    "Failed to remove {} during cleanup, consider deleting it manually: {}",
                    path, err
                );
                success = false;
            });
        }
    }
    return success;
}