russel 0.0.2

A simple static site builder I built for myself.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Contains the new command execution logic

use super::handler::NewArgs;
use crate::commands::new::create::create_project;
use crate::error::Result;

/// Executes the 'new' command which creates a new project
pub fn execute(args: NewArgs) -> Result<()> {
    println!("Creating a new project named: {}", args.name);

    // Create the project directory and handle any errors
    create_project(&args.name)?;

    // TODO: Add additional project setup steps here
    Ok(())
}