We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee29637 commit 60191efCopy full SHA for 60191ef
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "billable"
3
-version = "0.2.0"
+version = "0.2.1"
4
edition = "2021"
5
authors = ["Robert Wijas"]
6
description = "Displays monthly reports for billable hours. Supports Toggl and Harvest."
src/main.rs
@@ -56,6 +56,12 @@ fn main() {
56
.unwrap_or(false)
57
{
58
let path = user_config_path.with_extension("toml");
59
+ std::fs::create_dir_all(
60
+ &path
61
+ .parent()
62
+ .expect("config location should have parent directory"),
63
+ )
64
+ .expect("failed to create directory for configuration");
65
std::fs::write(&path, CONFIG_FILE_EXAMPLE).expect("failed to write configuration");
66
67
println!(
0 commit comments