refactor: split cli and logging to separate crates
All checks were successful
Test the running changes / Test (push) Successful in 42s

This commit is contained in:
2025-11-18 23:41:45 +02:00
parent 33bfff2e98
commit 7b300987b7
15 changed files with 153 additions and 94 deletions

17
gravel_cli/src/main.rs Normal file
View File

@@ -0,0 +1,17 @@
#![feature(addr_parse_ascii, never_type)]
use args::ProgramArgs;
use cracked_md::generate;
use error::Error;
//use slogger::{LOG_LEVEL, Level};
use stdsrv::serve;
mod args;
mod error;
fn main() -> Result<!, Error> {
let args = ProgramArgs::try_from(std::env::args())?;
generate(&args.indir, &args.outdir, args.force)?;
serve(args.addr, args.port, args.outdir)?;
}