mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-13 15:00:15 +01:00
formatting
This commit is contained in:
parent
7cfe075da6
commit
23b01c4775
5 changed files with 18 additions and 17 deletions
|
|
@ -44,7 +44,7 @@ pub fn handle_args() {
|
|||
.arg("echo $nu.config-path")
|
||||
.output()
|
||||
.expect("Failed to execute process");
|
||||
let config_path= String::from_utf8_lossy(&output.stdout);
|
||||
let config_path = String::from_utf8_lossy(&output.stdout);
|
||||
let mut file = std::fs::OpenOptions::new()
|
||||
.write(true)
|
||||
.append(true)
|
||||
|
|
@ -52,8 +52,8 @@ pub fn handle_args() {
|
|||
.expect("Failed to open config file");
|
||||
|
||||
writeln!(file, "{}", alias).expect("Failed to write to config file");
|
||||
},
|
||||
"n" | _ => std::process::exit(0),
|
||||
}
|
||||
_ => std::process::exit(0),
|
||||
};
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue