diff options
author | fxqnlr <[email protected]> | 2023-01-15 16:58:45 +0100 |
---|---|---|
committer | fxqnlr <[email protected]> | 2023-01-15 16:58:45 +0100 |
commit | 30c1ffcecb541d9b27982df6af26948514cbadaa (patch) | |
tree | 11a898fc729bc813059fc8b66b7a27a3e9ec532e /src/main.rs | |
parent | fad32c31b59001bed46fa860fbc3a994d278e700 (diff) | |
download | modlist-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.rs | 9 |
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 @@ | |||
1 | use std::env; | ||
2 | |||
1 | use modlist::{config::Cfg, input::get_input}; | 3 | use modlist::{config::Cfg, input::get_input}; |
2 | 4 | ||
3 | #[tokio::main] | 5 | #[tokio::main] |
4 | async fn main() { | 6 | async 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); |