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();
|
|
|
|
|
2022-01-24 22:15:55 +00:00
|
|
|
let config = config::toml::parse();
|
2022-01-22 21:02:51 +00:00
|
|
|
|
|
|
|
let client = ImgurHandle::new((&config.imgur.id).to_string());
|
|
|
|
|
|
|
|
parse(client).await;
|
|
|
|
}
|