mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46: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-manifests",
|
||||
"clap",
|
||||
"clap-cargo",
|
||||
"compact_str",
|
||||
"dirs",
|
||||
"embed-resource",
|
||||
|
@ -715,6 +716,16 @@ dependencies = [
|
|||
"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]]
|
||||
name = "clap_builder"
|
||||
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-manifests = { path = "../binstalk-manifests", version = "0.15.21" }
|
||||
clap = { version = "4.5.3", features = ["derive", "env"] }
|
||||
clap-cargo = "0.15.2"
|
||||
compact_str = "0.8.0"
|
||||
dirs = "6.0.0"
|
||||
file-format = { version = "0.26.0", default-features = false }
|
||||
|
@ -40,8 +41,8 @@ strum_macros = "0.27.0"
|
|||
supports-color = "3.0.0"
|
||||
tempfile = "3.5.0"
|
||||
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-core = "0.1.32"
|
||||
tracing-log = { version = "0.2.0", default-features = false }
|
||||
tracing-subscriber = { version = "0.3.17", features = ["fmt", "json", "ansi"], default-features = false }
|
||||
zeroize = "1.8.1"
|
||||
|
|
|
@ -35,6 +35,7 @@ use zeroize::Zeroizing;
|
|||
arg_required_else_help(true),
|
||||
// Avoid conflict with version_req
|
||||
disable_version_flag(true),
|
||||
styles = clap_cargo::style::CLAP_STYLING,
|
||||
)]
|
||||
pub struct Args {
|
||||
/// Packages to install.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue