1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Index: ruff/crates/ruff_cli/Cargo.toml
===================================================================
--- ruff.orig/crates/ruff_cli/Cargo.toml
+++ ruff/crates/ruff_cli/Cargo.toml
@@ -36,7 +36,6 @@ bitflags = { workspace = true }
cachedir = { version = "0.3.0" }
chrono = { workspace = true }
clap = { workspace = true, features = ["derive", "env"] }
-clap_complete_command = { version = "0.5.1" }
clearscreen = { version = "2.0.0" }
colored = { workspace = true }
filetime = { workspace = true }
Index: ruff/crates/ruff_cli/src/args.rs
===================================================================
--- ruff.orig/crates/ruff_cli/src/args.rs
+++ ruff/crates/ruff_cli/src/args.rs
@@ -61,9 +61,6 @@ pub enum Command {
/// Clear any caches in the current directory and any subdirectories.
#[clap(alias = "--clean")]
Clean,
- /// Generate shell completion.
- #[clap(alias = "--generate-shell-completion", hide = true)]
- GenerateShellCompletion { shell: clap_complete_command::Shell },
/// Run the Ruff formatter on the given files or directories.
#[doc(hidden)]
#[clap(hide = true)]
Index: ruff/crates/ruff_cli/src/lib.rs
===================================================================
--- ruff.orig/crates/ruff_cli/src/lib.rs
+++ ruff/crates/ruff_cli/src/lib.rs
@@ -156,10 +156,6 @@ pub fn run(
commands::clean::clean(log_level)?;
Ok(ExitStatus::Success)
}
- Command::GenerateShellCompletion { shell } => {
- shell.generate(&mut Args::command(), &mut stdout());
- Ok(ExitStatus::Success)
- }
Command::Check(args) => check(args, log_level),
Command::Format(args) => format(args, log_level),
}
|