feat: add color and wrapping to help text (#2052)

* feat: add color to help text

Uses the same coloring that cargo uses to make it easier to skim read the help

* fix: wrap help text

* fix: shorten value placeholders in help text

* fix: docs for override help text
This commit is contained in:
Josh McKinney 2025-02-14 23:40:19 -08:00 committed by GitHub
parent 2c624c26f4
commit 95a9818565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 53 additions and 14 deletions

View file

@ -25,7 +25,8 @@ pkg-fmt = "zip"
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 = { version = "4.5.3", features = ["derive", "env", "wrap_help"] }
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"