use crate::app::command::FinanceCommand;
use crate::app::finance::{run_finance_diff, run_finance_eval};

pub(super) fn dispatch_finance(command: FinanceCommand) -> Result<(), Box<dyn std::error::Error>> {
    match command {
        FinanceCommand::Eval { snapshot_path } => run_finance_eval(&snapshot_path),
        FinanceCommand::Diff {
            left_path,
            right_path,
        } => run_finance_diff(&left_path, &right_path),
    }
}
