summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-01-15 16:58:45 +0100
committerfxqnlr <[email protected]>2023-01-15 16:58:45 +0100
commit30c1ffcecb541d9b27982df6af26948514cbadaa (patch)
tree11a898fc729bc813059fc8b66b7a27a3e9ec532e /src/main.rs
parentfad32c31b59001bed46fa860fbc3a994d278e700 (diff)
downloadmodlist-30c1ffcecb541d9b27982df6af26948514cbadaa.tar
modlist-30c1ffcecb541d9b27982df6af26948514cbadaa.tar.gz
modlist-30c1ffcecb541d9b27982df6af26948514cbadaa.zip
started implementation of new input system
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 59d41c5..39e46e8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,10 +1,17 @@
1use std::env;
2
1use modlist::{config::Cfg, input::get_input}; 3use modlist::{config::Cfg, input::get_input};
2 4
3#[tokio::main] 5#[tokio::main]
4async fn main() { 6async fn main() {
5 let config = Cfg::init("modlist.toml").unwrap(); 7 let config = Cfg::init("modlist.toml").unwrap();
6 8
7 match get_input(config).await { 9 let mut args: Vec<String> = env::args().collect();
10 args.reverse();
11 args.pop();
12 args.reverse();
13
14 match get_input(config, args).await {
8 Ok(..) => (), 15 Ok(..) => (),
9 Err(e) => { 16 Err(e) => {
10 println!("{}", e); 17 println!("{}", e);