mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2025-12-20 11:04:38 +00:00
18 lines
325 B
Rust
18 lines
325 B
Rust
mod args;
|
|
|
|
use crate::args::Args;
|
|
use cipher_factory::CipherContext;
|
|
use clap::Parser;
|
|
use color_eyre::eyre::Result;
|
|
|
|
fn main() -> Result<()> {
|
|
color_eyre::install()?;
|
|
let args = Args::parse();
|
|
let context = CipherContext::from(args);
|
|
|
|
let output = context.process()?;
|
|
println!("{output}");
|
|
|
|
Ok(())
|
|
}
|