mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
refactor: separating compile-time rules
This commit is contained in:
parent
88d734e9ad
commit
6e4d975283
4 changed files with 21 additions and 19 deletions
11
src/rules.rs
Normal file
11
src/rules.rs
Normal 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");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue