mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 22:56:37 +00:00
feat: add color to help text
Uses the same coloring that cargo uses to make it easier to skim read the help
This commit is contained in:
parent
2c624c26f4
commit
26a7750e86
3 changed files with 14 additions and 1 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
@ -578,6 +578,7 @@ dependencies = [
|
||||||
"binstalk",
|
"binstalk",
|
||||||
"binstalk-manifests",
|
"binstalk-manifests",
|
||||||
"clap",
|
"clap",
|
||||||
|
"clap-cargo",
|
||||||
"compact_str",
|
"compact_str",
|
||||||
"dirs",
|
"dirs",
|
||||||
"embed-resource",
|
"embed-resource",
|
||||||
|
@ -715,6 +716,16 @@ dependencies = [
|
||||||
"clap_derive",
|
"clap_derive",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "clap-cargo"
|
||||||
|
version = "0.15.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d546f0e84ff2bfa4da1ce9b54be42285767ba39c688572ca32412a09a73851e5"
|
||||||
|
dependencies = [
|
||||||
|
"anstyle",
|
||||||
|
"clap",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_builder"
|
name = "clap_builder"
|
||||||
version = "4.5.29"
|
version = "4.5.29"
|
||||||
|
|
|
@ -26,6 +26,7 @@ atomic-file-install = { version = "1.0.9", path = "../atomic-file-install" }
|
||||||
binstalk = { path = "../binstalk", version = "0.28.24", default-features = false }
|
binstalk = { path = "../binstalk", version = "0.28.24", default-features = false }
|
||||||
binstalk-manifests = { path = "../binstalk-manifests", version = "0.15.21" }
|
binstalk-manifests = { path = "../binstalk-manifests", version = "0.15.21" }
|
||||||
clap = { version = "4.5.3", features = ["derive", "env"] }
|
clap = { version = "4.5.3", features = ["derive", "env"] }
|
||||||
|
clap-cargo = "0.15.2"
|
||||||
compact_str = "0.8.0"
|
compact_str = "0.8.0"
|
||||||
dirs = "6.0.0"
|
dirs = "6.0.0"
|
||||||
file-format = { version = "0.26.0", default-features = false }
|
file-format = { version = "0.26.0", default-features = false }
|
||||||
|
@ -40,8 +41,8 @@ strum_macros = "0.27.0"
|
||||||
supports-color = "3.0.0"
|
supports-color = "3.0.0"
|
||||||
tempfile = "3.5.0"
|
tempfile = "3.5.0"
|
||||||
tokio = { version = "1.35.0", features = ["rt-multi-thread", "signal"], default-features = false }
|
tokio = { version = "1.35.0", features = ["rt-multi-thread", "signal"], default-features = false }
|
||||||
tracing-core = "0.1.32"
|
|
||||||
tracing = { version = "0.1.39", default-features = false }
|
tracing = { version = "0.1.39", default-features = false }
|
||||||
|
tracing-core = "0.1.32"
|
||||||
tracing-log = { version = "0.2.0", default-features = false }
|
tracing-log = { version = "0.2.0", default-features = false }
|
||||||
tracing-subscriber = { version = "0.3.17", features = ["fmt", "json", "ansi"], default-features = false }
|
tracing-subscriber = { version = "0.3.17", features = ["fmt", "json", "ansi"], default-features = false }
|
||||||
zeroize = "1.8.1"
|
zeroize = "1.8.1"
|
||||||
|
|
|
@ -35,6 +35,7 @@ use zeroize::Zeroizing;
|
||||||
arg_required_else_help(true),
|
arg_required_else_help(true),
|
||||||
// Avoid conflict with version_req
|
// Avoid conflict with version_req
|
||||||
disable_version_flag(true),
|
disable_version_flag(true),
|
||||||
|
styles = clap_cargo::style::CLAP_STYLING,
|
||||||
)]
|
)]
|
||||||
pub struct Args {
|
pub struct Args {
|
||||||
/// Packages to install.
|
/// Packages to install.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue