refactor: split cli and logging to separate crates
All checks were successful
Test the running changes / Test (push) Successful in 42s
All checks were successful
Test the running changes / Test (push) Successful in 42s
This commit is contained in:
17
gravel_cli/src/main.rs
Normal file
17
gravel_cli/src/main.rs
Normal 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)?;
|
||||
}
|
||||
Reference in New Issue
Block a user