1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
mod cli; use anyhow::Result; use clap::Parser; use cli::Cli; use explainer::{Explainer, Jsonify}; fn main() -> Result<()> { let cli = Cli::parse(); let json_str = Explainer::from(cli.word.as_str())?.to_json()?; println!("{:?}", json_str); Ok(()) }