mod compare;
mod fixture_state;
mod inspect;
mod scan;

use crate::app::command::RuntimeCommand;

pub(super) fn dispatch_runtime(command: RuntimeCommand) -> Result<(), Box<dyn std::error::Error>> {
    match command {
        RuntimeCommand::FixtureState(command) => fixture_state::dispatch_fixture_state(command),
        RuntimeCommand::Inspect(command) => inspect::dispatch_inspect(command),
        RuntimeCommand::Compare(command) => compare::dispatch_compare(command),
        RuntimeCommand::Scan(command) => scan::dispatch_scan(command),
    }
}
