feat: prompt to install missing command

This commit is contained in:
iff 2024-11-27 20:38:37 +01:00
parent ab3534f0ef
commit c99c736ad5
7 changed files with 351 additions and 23 deletions

View file

@ -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());