refactor: Switch to using miette for errors instead of anyhow (#198)
Switch to a better error crate that will allow setting help texts for any error we want.
This commit is contained in:
parent
784be9869a
commit
065fa193e3
24 changed files with 364 additions and 143 deletions
|
|
@ -10,7 +10,6 @@ categories = ["command-line-utilities"]
|
|||
version = "0.8.11"
|
||||
|
||||
[workspace.dependencies]
|
||||
anyhow = "1"
|
||||
chrono = "0.4"
|
||||
clap = "4"
|
||||
colored = "2"
|
||||
|
|
@ -19,6 +18,7 @@ indexmap = { version = "2", features = ["serde"] }
|
|||
indicatif = { version = "0.17", features = ["improved_unicode"] }
|
||||
indicatif-log-bridge = "0.2"
|
||||
log = "0.4"
|
||||
miette = "7"
|
||||
once_cell = "1"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
|
@ -73,14 +73,13 @@ shadow-rs = "0.26"
|
|||
urlencoding = "2"
|
||||
users = "0.11"
|
||||
|
||||
# Workspace dependencies
|
||||
anyhow.workspace = true
|
||||
chrono.workspace = true
|
||||
clap = { workspace = true, features = ["derive", "cargo", "unicode", "env"] }
|
||||
colored.workspace = true
|
||||
indexmap.workspace = true
|
||||
indicatif.workspace = true
|
||||
log.workspace = true
|
||||
miette = { workspace = true, features = ["fancy"] }
|
||||
once_cell.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue