feat: color-eyre

This commit is contained in:
Kasper Juul Hermansen 2023-02-18 15:00:05 +01:00
parent 757c154002
commit 68af1696f7
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
3 changed files with 4 additions and 0 deletions

1
Cargo.lock generated
View File

@ -308,6 +308,7 @@ name = "dagger-rs"
version = "0.2.0"
dependencies = [
"clap",
"color-eyre",
"dagger-codegen",
"dagger-core 0.2.0",
"dirs",

View File

@ -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"

View File

@ -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::<Vec<String>>();
let args = args.iter().map(|s| s.as_str()).collect::<Vec<&str>>();