mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-14 15:23:52 +01:00
chore: better output
This commit is contained in:
parent
551edc2828
commit
cf9e6882e6
5 changed files with 100 additions and 24 deletions
10
src/main.rs
10
src/main.rs
|
|
@ -64,7 +64,10 @@ fn main() {
|
|||
let mut last_command = shell::last_command(&shell);
|
||||
last_command = shell::expand_alias(&shell, &last_command);
|
||||
let mut error_msg = command_output(&shell, &last_command);
|
||||
error_msg = error_msg.split_whitespace().collect::<Vec<&str>>().join(" ");
|
||||
error_msg = error_msg
|
||||
.split_whitespace()
|
||||
.collect::<Vec<&str>>()
|
||||
.join(" ");
|
||||
|
||||
loop {
|
||||
let suggestion = {
|
||||
|
|
@ -93,7 +96,10 @@ fn main() {
|
|||
} else {
|
||||
last_command = suggestion;
|
||||
error_msg = execution.err().unwrap();
|
||||
error_msg = error_msg.split_whitespace().collect::<Vec<&str>>().join(" ");
|
||||
error_msg = error_msg
|
||||
.split_whitespace()
|
||||
.collect::<Vec<&str>>()
|
||||
.join(" ");
|
||||
|
||||
let retry_message = format!("{}...", t!("retry"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue