frame-cli 0.4.0

CLI for Frame — six intention-verbs over one application: frame new scaffolds it, frame run serves it, frame dev hot-reloads it against the running node, frame test proves it (real browser included), frame check verifies it statically, frame doctor walks the prerequisites
Documentation
//! Routes a parsed command line to its verb.

use crate::cli::{Cli, Command};
use crate::error::CliError;

/// Executes a parsed CLI command.
///
/// # Errors
///
/// Returns the verb's typed refusal or failure.
pub fn execute(cli: Cli) -> Result<(), CliError> {
    match cli.command {
        Command::New { name } => super::new::new(&name),
        Command::Run => super::run::run(),
        Command::Dev { quiet_ms } => super::dev::dev(quiet_ms),
        Command::Test(scope) => super::test::test(scope),
        Command::Check => super::check::check(),
        Command::Doctor => super::doctor::doctor(),
        Command::Build => super::build::build(),
        Command::Host { config } => super::host::host(&config),
    }
}