ccd-cli 1.0.0-beta.4

Bootstrap and validate Continuous Context Development repositories
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::process::ExitCode;

use anyhow::Result;

use crate::commands;
use crate::output::{self, OutputFormat};

pub(crate) fn dispatch(command: crate::MachineCommand, format: OutputFormat) -> Result<ExitCode> {
    match command {
        crate::MachineCommand::List => {
            let report = commands::machine::list()?;
            output::render_report(format, &report)
        }
    }
}