move main to example

This commit is contained in:
Yuri Iozzelli
2020-10-25 10:02:41 +01:00
parent 3bae8420d9
commit bb46002102

15
examples/list.rs Normal file
View File

@@ -0,0 +1,15 @@
use anyhow::Result;
use bunqledger::BunqConfig;
fn main() -> Result<()> {
let cfg = BunqConfig::load()?;
let cfg = cfg.install()?;
let accs = cfg.monetary_accounts()?;
println!("{:#?}", accs);
let acc = &accs[0];
let ps = cfg.payments(acc)?;
println!("{:#?}", ps);
Ok(())
}