docs: AI configuration

This commit is contained in:
iff 2024-11-19 16:19:22 +01:00
parent c9b9af1728
commit c354fe014e
4 changed files with 80 additions and 19 deletions

View file

@ -19,9 +19,7 @@ pub fn runtime_match(
shell: &str,
) -> Option<String> {
let file = get_rule(executable);
if file.is_none() {
return None;
}
file.as_ref()?;
let file = std::fs::read_to_string(file.unwrap()).unwrap();
let rule: Rule = toml::from_str(&file).unwrap();