refactor: separating compile-time rules

This commit is contained in:
iff 2024-11-15 15:32:05 +01:00
parent 88d734e9ad
commit 6e4d975283
4 changed files with 21 additions and 19 deletions

11
src/rules.rs Normal file
View file

@ -0,0 +1,11 @@
use crate::suggestions::*;
use pay_respects_parser::parse_rules;
pub fn match_pattern(
executable: &str,
last_command: &str,
error_msg: &str,
shell: &str,
) -> Option<String> {
parse_rules!("rules");
}