From fde646a876cc43857a278ef09250263a21d547ee Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Tue, 18 Apr 2023 17:35:09 +0200 Subject: remove generate again --- src/main.rs | 9 +-------- 1 file changed, 1 insertion(+), 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 @@ -use clap::{Parser, Subcommand, CommandFactory}; +use clap::{Parser, Subcommand}; 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}; //TODO make default list optional @@ -61,9 +61,6 @@ enum Commands { /// the list you want to export list: Option }, - Completions { - shell: clap_complete::Shell, - } } #[derive(Subcommand)] @@ -235,9 +232,5 @@ async fn main() { Commands::Export { list } => { export(config, list) }, - Commands::Completions { shell } => { - clap_complete::generate(shell, &mut Cli::command(), "modlist", &mut std::io::stdout()); - Ok(()) - } }.unwrap(); } -- cgit v1.2.3