move main to example
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -1,15 +0,0 @@
|
||||
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