diff --git a/Cargo.lock b/Cargo.lock index 25b9159..2acbd61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -308,6 +308,7 @@ name = "dagger-rs" version = "0.2.0" dependencies = [ "clap", + "color-eyre", "dagger-codegen", "dagger-core 0.2.0", "dirs", diff --git a/Cargo.toml b/Cargo.toml index 61f385b..9582d0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,3 +41,4 @@ serde_json = "1.0.93" sha2 = "0.10.6" tar = "0.4.38" tempfile = "3.3.0" +color-eyre = "0.6.2" diff --git a/src/main.rs b/src/main.rs index 336a576..a9cbd75 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,8 @@ pub mod cli; mod cli_generate; fn main() -> eyre::Result<()> { + color_eyre::install().unwrap(); + let args = std::env::args(); let args = args.collect::>(); let args = args.iter().map(|s| s.as_str()).collect::>();