@smbcloud / cli / commits / b2569ab

update generated config to include tool version

Seto Elkahfi committed Jun 6, 2025 at 12:16 UTC b2569abc7f8a57ae02b8a87b0db9c085fee4181e
1 file changed +5 -1
crates/cli/src/project/crud_create.rs
+5 -1
@@ -82,6 +82,7 @@ async fn setup_smb_folder(name: &str, description: &str) -> Result<()> {
82 // Create config.toml file in the .smb folder
83 let repository_name = name.to_lowercase().replace(" ", "");
84 let now = Utc::now().to_rfc3339();
85 + let cli_version = env!("CARGO_PKG_VERSION");
86 std::fs::write(
87 ".smb/config.toml",
88 format!(
@@ -93,7 +94,10 @@ id = 1
94 name = "{repository_name}"
95 description = "{description}"
96 created_at = "{now}"
96 -updated_at = "{now}"
97 +updated_at = "{now}"
98 +
99 +# Generated by smbcloud-cli
100 +smbcloud_cli_version = "{cli_version}"
101 "#,
102 ),
103 )?;