mirror of
https://github.com/nushell/nushell.git
synced 2025-04-14 00:08:20 +02:00
make message more readable (#4646)
* make message more readable * monsieur clippy
This commit is contained in:
parent
c6a3066103
commit
2b377391c2
@ -75,8 +75,8 @@ pub(crate) fn read_config_file(
|
|||||||
config_path.push(CONFIG_FILE);
|
config_path.push(CONFIG_FILE);
|
||||||
|
|
||||||
if !config_path.exists() {
|
if !config_path.exists() {
|
||||||
println!("No config file found at {:?}", config_path);
|
println!("No config file found at {}", config_path.to_string_lossy());
|
||||||
println!("Would you like to create one (Y/n): ");
|
println!("Would you like to create one with defaults (Y/n): ");
|
||||||
|
|
||||||
let mut answer = String::new();
|
let mut answer = String::new();
|
||||||
std::io::stdin()
|
std::io::stdin()
|
||||||
@ -88,7 +88,7 @@ pub(crate) fn read_config_file(
|
|||||||
let mut output = File::create(&config_path).expect("Unable to create file");
|
let mut output = File::create(&config_path).expect("Unable to create file");
|
||||||
let config_file = include_str!("default_config.nu");
|
let config_file = include_str!("default_config.nu");
|
||||||
write!(output, "{}", config_file).expect("Unable to write to config file");
|
write!(output, "{}", config_file).expect("Unable to write to config file");
|
||||||
println!("Config file created {:?}", config_path);
|
println!("Config file created at: {}", config_path.to_string_lossy());
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
println!("Continuing without config file");
|
println!("Continuing without config file");
|
||||||
|
Loading…
Reference in New Issue
Block a user