Skip to content

Commit 642453a

Browse files
committed
fix: hide deprecated cmd for excluding them from shell completions
This includes * `git-checkout` (removed) * `read-manifest` (deprecated) * `verify-project` (deprecated)
1 parent 488713c commit 642453a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/bin/cargo/commands/git_checkout.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Removed.
2+
13
use crate::command_prelude::*;
24

35
const REMOVED: &str = "The `git-checkout` command has been removed.";

src/bin/cargo/commands/read_manifest.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
//! Deprecated.
2+
13
use crate::command_prelude::*;
24

35
pub fn cli() -> Command {
46
subcommand("read-manifest")
7+
.hide(true)
58
.about(color_print::cstr!(
69
"\
710
Print a JSON representation of a Cargo.toml manifest.

src/bin/cargo/commands/verify_project.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
//! Deprecated.
2+
13
use crate::command_prelude::*;
24

35
use std::collections::HashMap;
46
use std::process;
57

68
pub fn cli() -> Command {
79
subcommand("verify-project")
10+
.hide(true)
811
.about(
912
"\
1013
Check correctness of crate manifest.

0 commit comments

Comments
 (0)