pint-rs 0.1.3

Parse Toggl time-tracking CSV files to generate invoices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use clap::Parser;
use pint_rs::{Args, Invoice, InvoiceBuilder};
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let args = Args::parse();
    let invoice: Invoice = InvoiceBuilder::new(&args).import_csv(&args.file)?.build();

    println!("{}", invoice);

    Ok(())
}