ct_tracker_lib/lib.rs
1mod ct_fs;
2pub mod errors;
3pub mod projects;
4
5pub fn init() -> errors::CtResult<()> {
6 // TODO some sort of log level -> v0.2.0
7 let p = ct_fs::default_path::conf_path()?;
8 if ct_fs::create_path_if_missing(&p).unwrap() {
9 println!("Created config path");
10 }
11 let p = ct_fs::default_path::time_path()?;
12 if ct_fs::create_path_if_missing(&p).unwrap() {
13 println!("Created time tracking path");
14 }
15
16 projects::persistent::validate()
17}