summaryrefslogtreecommitdiffstats
path: root/cli/src/main.rs
blob: 9c6edb6e54f73436d40504e216fa0772fd17126b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;

mod model;

fn main() {
    // let post = Post::new(Transaction {
    //     description: "Test".to_string(),
    //     category: "Mat".to_string(),
    //     amount: Decimal::try_from(120.4_f64).unwrap(),
    //     kind: TransactionKind::Expense,
    //     from: "Kortkonto".to_string(),
    //     to: "Coop Lambohov".to_string(),
    // });
    // post.write(&"test").unwrap();
    let store = model::Store::open(PathBuf::from("store")).unwrap();
    // println!("{:#?}", store);
    store.write().unwrap();
}