move main to example
This commit is contained in:
15
examples/list.rs
Normal file
15
examples/list.rs
Normal 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(())
|
||||
}
|
Reference in New Issue
Block a user