Description: avoid not-in-Debian crate clap_complete_nushell
 This essentially reverts upstream git commit e7ba292.
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2023-11-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,6 @@
 [dependencies]
 clap = { version = "4.3.2" }
 clap_complete = { version = "4.3.1" }
-clap_complete_nushell = { version = "4.4.1" }
 rusqlite = { version = "0.29.0", features = [ "backup" ] }
 rayon = { version = "1.7.0" }
 glob = { version = "0.3.1" }
--- a/src/subcommands.rs
+++ b/src/subcommands.rs
@@ -1,6 +1,5 @@
 use clap::ArgMatches;
 use clap_complete::Shell::*;
-use clap_complete_nushell::Nushell;
 use regex::Regex;
 use rusqlite::Error;
 
@@ -242,16 +241,9 @@
         // Note that Nushell is handled separately since the Enum types don't match
     };
 
-    let app = &mut cli::build();
     if let Some(sh) = sh {
+        let app = &mut cli::build();
         clap_complete::generate(sh, app, app.get_name().to_string(), &mut std::io::stdout());
-    } else if shell.as_str() == "nu" || shell.as_str() == "nushell" {
-        clap_complete::generate(
-            Nushell,
-            app,
-            app.get_name().to_string(),
-            &mut std::io::stdout(),
-        );
     } else {
         eprintln!("error: '{}' isn't a (supported) shell", shell);
     }
