feat(windows): add command line argument parsing utilities

Implement CmdLexer, CmdArg and CmdArgs for proper Windows command line argument parsing and quoting. Add itertools dependency for string joining functionality.
This commit is contained in:
yyc12345 committed 2025-10-22 12:11:42 +08:00
1 parent 84a29c862b
commit ffd58ff677
3 files changed
+299 -13

No files matched your search

Generated
+16
View File
@@ -187,6 +187,12 @@ dependencies = [
"litrs",
]
[[package]]
name = "either"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "equivalent"
version = "1.0.2"
@@ -249,6 +255,15 @@ version = "1.70.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
[[package]]
name = "itertools"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.15"
@@ -736,6 +751,7 @@ name = "wfassoc"
version = "0.1.0"
dependencies = [
"indexmap",
"itertools",
"regex",
"thiserror",
"uuid",