Skip to content

Commit

Permalink
bump clap
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jun 14, 2022
1 parent 3202547 commit 81ac368
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ members = ["xtask"]

[dependencies]
atty = "0.2"
# Pinned until further action to migrate to newer clap, see https://github.com/clap-rs/clap/issues/3822#issuecomment-1154069623
clap = { version = "~3.1", features = ["derive"] }
clap = { version = "3.2.2", features = ["derive", "unstable-v4"] }
color-eyre = "0.6"
eyre = "0.6"
thiserror = "1"
Expand Down
2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cross = { path = "..", features = ["dev"] }
walkdir = { version = "2" }
color-eyre = "0.6"
eyre = "0.6"
clap = { version = "~3.1", features = ["derive", "env"] }
clap = { version = "3.1", features = ["derive", "env", "unstable-v4"] }
which = { version = "4", default_features = false }
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.8"
6 changes: 5 additions & 1 deletion xtask/src/build_docker_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ pub struct BuildDockerImage {
force: bool,
#[clap(short, long)]
push: bool,
#[clap(long, possible_values = ["auto", "plain", "tty"], default_value = "auto")]
#[clap(
long,
value_parser = clap::builder::PossibleValuesParser::new(["auto", "plain", "tty"]),
default_value = "auto"
)]
progress: String,
#[clap(long)]
no_cache: bool,
Expand Down

0 comments on commit 81ac368

Please sign in to comment.