Paul Campbell
4eaf158483
Closes kemitix/podal#15 Reviewed-on: #17 Co-authored-by: Paul Campbell <pcampbell@kemitix.net> Co-committed-by: Paul Campbell <pcampbell@kemitix.net>
25 lines
480 B
Rust
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(())
|
|
}
|