feat: auto adapt suggestion to shell syntax

This commit is contained in:
iff 2024-11-18 13:11:13 +01:00
parent 171b3d4607
commit 8f9aac6bdc
3 changed files with 47 additions and 20 deletions

View file

@ -62,7 +62,10 @@ fn main() {
if command.is_none() {
break;
};
command.unwrap()
let mut command = command.unwrap();
shell::shell_syntax(&shell, &mut command);
command
};
let highlighted_suggestion = {