mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-15 07:43:51 +01:00
feat: command not found hook
This commit is contained in:
parent
f80fbaa8d3
commit
e7f3eca47f
4 changed files with 59 additions and 11 deletions
|
|
@ -18,11 +18,11 @@ use sys_locale::get_locale;
|
|||
|
||||
mod args;
|
||||
mod files;
|
||||
mod modes;
|
||||
mod rules;
|
||||
mod shell;
|
||||
mod style;
|
||||
mod suggestions;
|
||||
mod modes;
|
||||
|
||||
#[cfg(feature = "runtime-rules")]
|
||||
mod replaces;
|
||||
|
|
@ -60,15 +60,12 @@ fn main() {
|
|||
|
||||
let mode = match std::env::var("_PR_MODE") {
|
||||
Ok(mode) => mode,
|
||||
Err(_) => {
|
||||
"suggestion".to_string()
|
||||
}
|
||||
Err(_) => "suggestion".to_string(),
|
||||
};
|
||||
|
||||
match mode.as_str() {
|
||||
"suggestion" => modes::suggestion(),
|
||||
"cnf" => modes::cnf(),
|
||||
_ => {
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue