From 8b227bd4e4af8b88a56df609697d00389432ad89 Mon Sep 17 00:00:00 2001 From: "Sanket M." Date: Mon, 10 Aug 2026 22:57:55 +0530 Subject: [PATCH] fix(release): update version argument support --- rust/Cargo.lock | 24 ++++++++++++------------ rust/Cargo.toml | 2 +- rust/src/application/commands/release.rs | 15 +++++++++++++++ 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index ecaafb12..c30d49df 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -79,7 +79,7 @@ version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -90,7 +90,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -476,9 +476,9 @@ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" [[package]] name = "cli-engine" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fa5880fd7247438c612efbed95ec3e41b6e148e41769761115fd4488d578cfa" +checksum = "6ffadbcfb186a0f7175050b56573e4a0a841c49507c04ff8d4f6bc38efc64fe7" dependencies = [ "async-trait", "base64", @@ -834,7 +834,7 @@ dependencies = [ "libc", "option-ext", "redox_users", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -941,7 +941,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -1963,7 +1963,7 @@ version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -2381,7 +2381,7 @@ dependencies = [ "once_cell", "socket2", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2669,7 +2669,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3102,7 +3102,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -3242,7 +3242,7 @@ dependencies = [ "getrandom 0.4.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3657,7 +3657,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" dependencies = [ "memoffset", "tempfile", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 3abd403e..1ecc2c8b 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -20,7 +20,7 @@ async-trait = "0.1" bytes = "1" chrono = { version = "0.4", default-features = false, features = ["clock", "serde"] } clap = { version = "4.5", features = ["std", "string"] } -cli-engine = { features = ["pkce-auth"], version = "0.8" } +cli-engine = { features = ["pkce-auth"], version = "0.8.3" } dirs = "6" domains-client = { path = "domains-client" } fancy-regex = "0.14" diff --git a/rust/src/application/commands/release.rs b/rust/src/application/commands/release.rs index a4d30a73..cd65c476 100644 --- a/rust/src/application/commands/release.rs +++ b/rust/src/application/commands/release.rs @@ -165,6 +165,21 @@ pub(super) fn command() -> RuntimeCommandSpec { #[cfg(test)] mod tests { + #[test] + fn command_accepts_version_flag() { + super::command() + .spec + .clap_command() + .try_get_matches_from([ + "release", + "--application-id", + "app-123", + "--version", + "1.2.3", + ]) + .expect("release version flag should be accepted"); + } + #[test] fn ui_extension_entry_maps_fields_and_target() { use crate::config::ExtensionTarget;