Skip to content

cazou/timewarrior-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/...

About

Rust implementation of the timewarrior tool

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages