diff options
Diffstat (limited to 'crates/renderer/src/main.rs')
| -rw-r--r-- | crates/renderer/src/main.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/crates/renderer/src/main.rs b/crates/renderer/src/main.rs index b71a836..6f951ac 100644 --- a/crates/renderer/src/main.rs +++ b/crates/renderer/src/main.rs @@ -29,11 +29,6 @@ pub fn main() -> Erm<()> { .about("Run the LCOLONQ model renderer in a terminal") ) .subcommand( - Command::new("validate-card") - .arg(Arg::new("path")) - .about("Validate the TCG card at the given path.") - ) - .subcommand( Command::new("repair-card") .arg(Arg::new("path")) .about("Repair the TCG card at the given path.") @@ -57,27 +52,6 @@ pub fn main() -> Erm<()> { Some(("model-terminal", _cm)) => { teleia::run("LCOLONQ", 1920, 1080, teleia::Options::HIDDEN, overlay::model::Terminal::new)?; }, - Some(("validate-card", cm)) => { - if let Some(path) = cm.get_one::<String>("path") { - if overlay::tcg::validate_card(&std::fs::read(path)?)? { - println!("signatures match!"); - std::process::exit(0); - } else { - println!("signatures do not match"); - std::process::exit(1); - } - } else { - eprintln!("no path specified"); - } - }, - Some(("repair-card", cm)) => { - if let Some(path) = cm.get_one::<String>("path") { - let res = overlay::tcg::repair_card(&std::fs::read(path)?)?; - std::io::stdout().write_all(&res)?; - } else { - eprintln!("no path specified"); - } - }, _ => unreachable!("no subcommand"), } Ok(()) |
