http-server 1.0.0-pre.6fa7635

Simple and configurable command-line HTTP server
pub mod cli;
pub mod config;
pub mod handler;
pub mod server;

use anyhow::Result;
use clap::Parser;

use self::cli::command::Command;
use self::cli::Cli;

fn main() -> Result<()> {
    tracing_subscriber::fmt()
        .with_max_level(tracing::Level::DEBUG)
        .init();
    let args = Cli::parse();

    match args.command {
        Command::Start(opt) => opt.exec()?,
    }

    Ok(())
}