create_html 0.1.3

Creates index.html with all the boilerplate in a designated folder.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser;
use create_html::create_html::HtmlCreator;
use std::io::Result;

#[derive(Parser)]
#[command(author, version, about, long_about= None)]
struct Cli {
    dir_name: String,
}

fn main() -> Result<()> {
    let cli = Cli::parse();
    let html_creator = HtmlCreator::new(cli.dir_name);
    html_creator.dir_create()?;
    html_creator.index_html()?;
    Ok(())
}