ct-tracker-lib 0.1.1

A simple library for time tracking.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod ct_fs;
pub mod errors;
pub mod projects;

pub fn init() -> errors::CtResult<()> {
    // TODO some sort of log level -> v0.2.0
    let p = ct_fs::default_path::conf_path()?;
    if ct_fs::create_path_if_missing(&p).unwrap() {
        println!("Created config path");
    }
    let p = ct_fs::default_path::time_path()?;
    if ct_fs::create_path_if_missing(&p).unwrap() {
        println!("Created time tracking path");
    }

    projects::persistent::validate()
}