use codebook_config::{CodebookConfig, CodebookConfigFile};
use std::path::Path;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = CodebookConfigFile::load(None)?;
println!("Loaded dictionaries: {:?}", config.get_dictionary_ids());
let should_ignore = config.should_ignore_path(Path::new("target/debug/build"));
println!("Should ignore path: {should_ignore}");
let is_allowed = config.is_allowed_word("rustc");
println!("Is 'rustc' allowed: {is_allowed}");
let should_flag = config.should_flag_word("todo");
println!("Should flag 'todo': {should_flag}");
Ok(())
}