timewarrior-rs

Crates.iotimewarrior-rs
lib.rstimewarrior-rs
version0.4.4
sourcesrc
created_at2023-07-24 20:20:03.398365
updated_at2023-07-24 20:20:03.398365
descriptionAn interface to use data logged by the `timew` utility.
homepage
repositoryhttps://github.com/cazou/timewarrior-rs
max_upload_size
id924917
size25,415
Detlev Casanova (cazou)

documentation

README

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.

Example

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

Future work

The next steps include:

  • Providing structs to easily show the output of the different timewarrior commands.
  • Add database editing through start/stop/modify/...
Commit count: 13

cargo fmt