podal/src/main.rs
Paul Campbell 4eaf158483
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
i15-anyhow-context (#17)
Closes kemitix/podal#15

Reviewed-on: #17
Co-authored-by: Paul Campbell <pcampbell@kemitix.net>
Co-committed-by: Paul Campbell <pcampbell@kemitix.net>
2023-08-13 16:11:16 +01:00

25 lines
480 B
Rust

use clap::Parser;
use podal::file::FileEnv;
use podal::network::NetworkEnv;
use podal::params::Args;
use podal::prelude::*;
fn main() -> Result<()> {
println!("Podal");
let site = "https://www.youtube.com/";
let args = Args::parse();
podal::run(
site,
&args,
podal::Env {
network: NetworkEnv::default(),
file: FileEnv::create(&args),
},
)
.context("Running")?;
println!("Done");
Ok(())
}