mirror of
https://github.com/nushell/nushell.git
synced 2025-04-01 03:36:53 +02: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) {
|
"y" | "" => match File::create(&config_path) {
|
||||||
Ok(mut output) => match write!(output, "{}", config_file) {
|
Ok(mut output) => match write!(output, "{}", config_file) {
|
||||||
Ok(_) => {
|
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(_) => {
|
Err(_) => {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
|
Loading…
Reference in New Issue
Block a user