Skip to content

Commit

Permalink
Add wildcards support to publish/upload commands on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 27, 2023
1 parent f5c3cbf commit 78b8a23
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ native-tls = { version = "0.2.8", optional = true }
rustls = { version = "0.20.8", optional = true }
rustls-pemfile = { version = "1.0.1", optional = true }
keyring = { version = "2.0.0", default-features = false, features = ["linux-no-secret-service"], optional = true }
wild = { version = "2.1.0", optional = true }

[dev-dependencies]
indoc = "2.0.0"
Expand All @@ -103,7 +104,7 @@ log = ["tracing-subscriber"]

cli-completion = ["dep:clap_complete_command"]

upload = ["ureq", "multipart", "configparser", "bytesize", "dialoguer/password"]
upload = ["ureq", "multipart", "configparser", "bytesize", "dialoguer/password", "wild"]
# keyring doesn't support *BSD so it's not enabled in `full` by default
password-storage = ["upload", "keyring"]

Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ fn run() -> Result<()> {
}
}

#[cfg(not(feature = "wild"))]
let opt = Opt::parse();
#[cfg(feature = "wild")]
let opt = Opt::parse_from(wild::args_os());

match opt {
Opt::Build {
Expand Down

0 comments on commit 78b8a23

Please sign in to comment.