Crates.io | timewarrior-rs |
lib.rs | timewarrior-rs |
version | 0.4.4 |
source | src |
created_at | 2023-07-24 20:20:03.398365 |
updated_at | 2023-07-24 20:20:03.398365 |
description | An interface to use data logged by the `timew` utility. |
homepage | |
repository | https://github.com/cazou/timewarrior-rs |
max_upload_size | |
id | 924917 |
size | 25,415 |
timewarrior-rs
is a library providing access to the timewarrior time tracking utility.
It currently only provides access to the data parsed from the local database.
use timewarrior_rs::formatter;
fn main() -> Result<(), String> {
let range = Range::today().unwrap();
println!("Loading TimeWarrior for {}... ", range);
let work = formatter::raw(Some(range)).unwrap();
for entry in work.entries() {
println!("{entry}");
}
Ok(())
}
Will show the work of today
The next steps include: