mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
format: add sh -c when displaying
This commit is contained in:
parent
fa040c4590
commit
9e17c0c68e
3 changed files with 27 additions and 10 deletions
|
|
@ -157,7 +157,7 @@ fn compare_string(a: &str, b: &str) -> usize {
|
|||
}
|
||||
|
||||
pub fn confirm_suggestion(shell: &str, command: &str, last_command: &str) {
|
||||
println!("{}\n", highlight_difference(command, last_command));
|
||||
println!("{}\n", highlight_difference(shell, command, last_command));
|
||||
println!("Press enter to execute the suggestion. Or press Ctrl+C to exit.");
|
||||
std::io::stdin().read_line(&mut String::new()).unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue