summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-04-18 17:35:09 +0200
committerfxqnlr <[email protected]>2023-04-18 17:35:09 +0200
commitfde646a876cc43857a278ef09250263a21d547ee (patch)
treedfdf32364e148a4af47dbdb08abc701eccedea98
parent3047c83714b28432fb8b4b60261f761526eb1f2e (diff)
downloadmodlist-fde646a876cc43857a278ef09250263a21d547ee.tar
modlist-fde646a876cc43857a278ef09250263a21d547ee.tar.gz
modlist-fde646a876cc43857a278ef09250263a21d547ee.zip
remove generate again
-rw-r--r--src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index a9071f1..e845be1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
1use clap::{Parser, Subcommand, CommandFactory}; 1use clap::{Parser, Subcommand};
2use modlist::{config::Cfg, mod_add, mod_remove, db::{lists_get, config_get_current_list, lists_get_all_ids}, IDSelector, download, update, List, get_current_list, import, devdir, export, list_add, Modloader, list_version, list_remove, list_change}; 2use modlist::{config::Cfg, mod_add, mod_remove, db::{lists_get, config_get_current_list, lists_get_all_ids}, IDSelector, download, update, List, get_current_list, import, devdir, export, list_add, Modloader, list_version, list_remove, list_change};
3 3
4//TODO make default list optional 4//TODO make default list optional
@@ -61,9 +61,6 @@ enum Commands {
61 /// the list you want to export 61 /// the list you want to export
62 list: Option<String> 62 list: Option<String>
63 }, 63 },
64 Completions {
65 shell: clap_complete::Shell,
66 }
67} 64}
68 65
69#[derive(Subcommand)] 66#[derive(Subcommand)]
@@ -235,9 +232,5 @@ async fn main() {
235 Commands::Export { list } => { 232 Commands::Export { list } => {
236 export(config, list) 233 export(config, list)
237 }, 234 },
238 Commands::Completions { shell } => {
239 clap_complete::generate(shell, &mut Cli::command(), "modlist", &mut std::io::stdout());
240 Ok(())
241 }
242 }.unwrap(); 235 }.unwrap();
243} 236}