imgurs/src/main.rs

20 lines
331 B
Rust
Raw Normal View History

2022-01-22 21:02:51 +00:00
mod cli;
2022-01-22 21:14:26 +00:00
mod config;
2022-01-22 21:02:51 +00:00
2022-01-22 22:10:11 +00:00
use cli::parse::parse;
2022-01-22 21:02:51 +00:00
use simple_logger::SimpleLogger;
2022-01-22 22:10:11 +00:00
use imgurs::api::ImgurHandle;
2022-01-22 21:02:51 +00:00
#[tokio::main]
async fn main() {
SimpleLogger::new().init().unwrap();
let config = config::toml::parse().unwrap();
let client = ImgurHandle::new((&config.imgur.id).to_string());
parse(client).await;
}