use color_eyre::eyre::Result; use peckish::prelude::builder::*; use peckish::prelude::*; #[tokio::main] async fn main() -> Result<()> { color_eyre::install()?; let subscriber = tracing_subscriber::FmtSubscriber::builder() .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) .finish(); tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed"); let tarball_artifact = TarballArtifactBuilder::new("example tarball artifact") .path("./examples/data/example.tar.Zstd") .build()?; let file_producer = FileProducerBuilder::new("example file producer") .path("./test_output_pls_ignore") .build()?; let file_artifact = file_producer.produce_from(&tarball_artifact).await?; println!( "ls -lah {}", file_artifact .paths .iter() .map(|p| p.display().to_string()) .collect::>() .join(" ") ); Ok(()) }