diff --git a/src/bin/juliaup.rs b/src/bin/juliaup.rs index d2a2e579..3232ebbb 100644 --- a/src/bin/juliaup.rs +++ b/src/bin/juliaup.rs @@ -2,7 +2,6 @@ use anyhow::{Context, Result}; use clap::Parser; use juliaup::cli::{ConfigSubCmd, Juliaup, OverrideSubCmd, SelfSubCmd}; use juliaup::command_api::run_command_api; -use juliaup::command_completions::run_command_completions; #[cfg(not(windows))] use juliaup::command_config_symlinks::run_command_config_symlinks; use juliaup::command_config_versionsdbupdate::run_command_config_versionsdbupdate; @@ -148,6 +147,5 @@ fn main() -> Result<()> { #[cfg(not(feature = "selfupdate"))] SelfSubCmd::Uninstall {} => run_command_selfuninstall_unavailable(), }, - Juliaup::Completions { shell } => run_command_completions(shell), } } diff --git a/src/cli.rs b/src/cli.rs index 5d7bc76a..789f486b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -50,8 +50,6 @@ pub enum Juliaup { Info {}, #[clap(subcommand, name = "self")] SelfSubCmd(SelfSubCmd), - /// Generate tab-completion scripts for your shell - Completions { shell: clap_complete::Shell }, // This is used for the cron jobs that we create. By using this UUID for the command // We can identify the cron jobs that were created by juliaup for uninstall purposes #[cfg(feature = "selfupdate")] diff --git a/src/command_completions.rs b/src/command_completions.rs deleted file mode 100644 index b24627b8..00000000 --- a/src/command_completions.rs +++ /dev/null @@ -1,16 +0,0 @@ -use crate::cli; -use anyhow::Result; -use clap::CommandFactory; -use clap_complete::Shell; -use cli::Juliaup; -use std::io; - -pub fn run_command_completions(shell: Shell) -> Result<()> { - clap_complete::generate( - shell, - &mut Juliaup::command(), - "juliaup", - &mut io::stdout().lock(), - ); - Ok(()) -} diff --git a/src/lib.rs b/src/lib.rs index 92675479..6b5c2f72 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,6 @@ use anyhow::Context; pub mod cli; pub mod command_add; pub mod command_api; -pub mod command_completions; pub mod command_config_backgroundselfupdate; pub mod command_config_modifypath; pub mod command_config_startupselfupdate;