summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 39e46e8eaba475f79d80c9595a5ae1eb6b23dbb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use std::env;

use modlist::{config::Cfg, input::get_input};

#[tokio::main]
async fn main() {
    let config = Cfg::init("modlist.toml").unwrap();

    let mut args: Vec<String> = env::args().collect();
    args.reverse();
    args.pop();
    args.reverse();
    
    match get_input(config, args).await {
        Ok(..) => (),
        Err(e) => {
            println!("{}", e);
        }
    };
}