russel 0.0.1

A simple static site builder I built for myself.
Documentation
//! Contains the new command handler
use crate::{Result, commands::new::execute::execute};
use clap::ArgMatches;

/// Arguments for the 'new' command
pub struct NewArgs {
    /// The name of the new project
    pub name: String,
}

/// Handles the 'new' command by parsing arguments and calling execute
pub fn handle_command(sub_matches: &ArgMatches) -> Result<()> {
    let name = sub_matches
        .get_one::<String>("name")
        .expect("Name is required")
        .clone();

    execute(NewArgs { name })
}