Skip to content

Commit

Permalink
fix: Config file log message on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Mar 2, 2024
1 parent 90fd5d6 commit c7366e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/application/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ async fn create_config_file() -> Result<()> {
fs::create_dir_all(config_file_path.parent().unwrap()).await?;
}

let mut file = fs::File::create(config_file_path).await?;
let mut file = fs::File::create(config_file_path.clone()).await?;
file.write_all(Config::serialize_default(build()).as_bytes())
.await?;

println!("Created default config file at {config_file_path_str}");
let config_path_display = config_file_path.as_os_str().to_str().unwrap();
println!("Created default config file at {config_path_display}");
return Ok(());
}

Expand Down

0 comments on commit c7366e9

Please sign in to comment.