mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
18 lines
408 B
Rust
18 lines
408 B
Rust
use anyhow::Ok;
|
|
use cjdic2_core::{AppService, Timer};
|
|
|
|
mod common;
|
|
use common::get_db_dir;
|
|
|
|
fn main() -> Result<(), anyhow::Error> {
|
|
let service = AppService::new(get_db_dir())?;
|
|
|
|
{
|
|
let _timer = Timer::new("remove one".to_string());
|
|
let mut writer = service.get_yomitan_writer()?;
|
|
AppService::remove_yomitan_dictionary(&mut writer, "JMnedict.zip", "ja")?;
|
|
}
|
|
|
|
Ok(())
|
|
}
|