mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-16 08:13:52 +01:00
feat: prompt to install missing command
This commit is contained in:
parent
ab3534f0ef
commit
c99c736ad5
7 changed files with 351 additions and 23 deletions
|
|
@ -130,7 +130,7 @@ pub fn get_best_match_file(input: &str) -> Option<String> {
|
|||
})
|
||||
.collect::<Vec<String>>();
|
||||
|
||||
let best_match = find_similar(&exit_dir, &dir_files);
|
||||
let best_match = find_similar(&exit_dir, &dir_files, Some(1));
|
||||
best_match.as_ref()?;
|
||||
|
||||
input = format!("{}/{}", input, best_match.unwrap());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue