mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 07:30:13 +01:00
chore: make the config setup messages consistent (#7560)
This commit is contained in:
parent
37dc226996
commit
fa8629300f
@ -74,7 +74,16 @@ pub(crate) fn read_config_file(
|
||||
"y" | "" => match File::create(&config_path) {
|
||||
Ok(mut output) => match write!(output, "{}", config_file) {
|
||||
Ok(_) => {
|
||||
println!("Config file created at: {}", config_path.to_string_lossy())
|
||||
let config_type = if is_env_config {
|
||||
"Environment config"
|
||||
} else {
|
||||
"Config"
|
||||
};
|
||||
println!(
|
||||
"{} file created at: {}",
|
||||
config_type,
|
||||
config_path.to_string_lossy()
|
||||
);
|
||||
}
|
||||
Err(_) => {
|
||||
eprintln!(
|
||||
|
Loading…
Reference in New Issue
Block a user