diff options
-rw-r--r-- | src/main.rs | 9 |
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 @@ | |||
1 | use clap::{Parser, Subcommand, CommandFactory}; | 1 | use clap::{Parser, Subcommand}; |
2 | use 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}; | 2 | use 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 | } |