24 lines
462 B
Rust
24 lines
462 B
Rust
use clap::Parser;
|
|
mod blog;
|
|
mod cli;
|
|
mod error;
|
|
mod og;
|
|
|
|
use crate::blog::Meta;
|
|
|
|
fn main() {
|
|
let config = cli::Args::parse();
|
|
|
|
blog::FALLBACK_META_PATH.get_or_init(|| config.fallback_meta);
|
|
|
|
let _meta = Meta::try_from(
|
|
config
|
|
.single_or_batch
|
|
.single_meta
|
|
.expect("No patch for single file processing."),
|
|
)
|
|
.expect("Failed to deserialize single_meta file");
|
|
|
|
println!("Loaded FallbackMeta");
|
|
}
|