Start refactor of ynab by splitting it up

This commit is contained in:
2026-05-02 11:04:38 +02:00
parent ec77c27700
commit 65ddf515ad
6 changed files with 106 additions and 97 deletions
+3 -3
View File
@@ -115,7 +115,7 @@ fn main() -> Result<(), Box<dyn Error>> {
plan,
plan_id,
} => {
let plan = Lookup::try_from((plan, plan_id))?;
let plan = Lookup::from_options(plan, plan_id)?;
let accounts = Ynab::new(&token).list_accounts(plan)?;
println!("Available accounts in plan:");
for account in accounts {
@@ -132,8 +132,8 @@ fn main() -> Result<(), Box<dyn Error>> {
format,
inputs,
} => {
let plan = Lookup::try_from((plan, plan_id))?;
let account = Lookup::try_from((account, account_id))?;
let plan = Lookup::from_options(plan, plan_id)?;
let account = Lookup::from_options(account, account_id)?;
let transactions = read_transactions_from(&inputs, &format)?;