From a44ada07b9dba5cea5631b806e009dfbf7510ec2 Mon Sep 17 00:00:00 2001 From: Rustin170506 Date: Sun, 1 Dec 2024 18:31:29 +0800 Subject: [PATCH] fix: Remove default registry reference in `info` cmd docs Signed-off-by: Rustin170506 --- src/bin/cargo/commands/info.rs | 2 +- src/doc/man/cargo-info.md | 6 +++--- src/doc/man/generated_txt/cargo-info.txt | 11 +++++------ src/doc/src/commands/cargo-info.md | 6 +++--- src/etc/man/cargo-info.1 | 6 +++--- tests/testsuite/cargo_info/help/stdout.term.svg | 2 +- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/bin/cargo/commands/info.rs b/src/bin/cargo/commands/info.rs index 065fcbcd9aa..31b68f3e89b 100644 --- a/src/bin/cargo/commands/info.rs +++ b/src/bin/cargo/commands/info.rs @@ -5,7 +5,7 @@ use cargo_util_schemas::core::PackageIdSpec; pub fn cli() -> Command { Command::new("info") - .about("Display information about a package in the registry") + .about("Display information about a package") .arg( Arg::new("package") .required(true) diff --git a/src/doc/man/cargo-info.md b/src/doc/man/cargo-info.md index d501a2c89d1..aa0aa1ab11a 100644 --- a/src/doc/man/cargo-info.md +++ b/src/doc/man/cargo-info.md @@ -2,7 +2,7 @@ ## NAME -cargo-info --- Display information about a package in the registry. Default registry is crates.io +cargo-info --- Display information about a package. ## SYNOPSIS @@ -10,7 +10,7 @@ cargo-info --- Display information about a package in the registry. Default regi ## DESCRIPTION -This command displays information about a package in the registry. It fetches data from the package's Cargo.toml file +This command displays information about a package. It fetches data from the package's Cargo.toml file and presents it in a human-readable format. ## OPTIONS @@ -60,7 +60,7 @@ selected based on the Minimum Supported Rust Version (MSRV). cargo info serde@1.0.0 3. Inspect the `serde` package form the local registry: - cargo info serde --registry my-registry + cargo info serde --registry my-registry ## SEE ALSO diff --git a/src/doc/man/generated_txt/cargo-info.txt b/src/doc/man/generated_txt/cargo-info.txt index 28a949bdedf..46140d1e5d7 100644 --- a/src/doc/man/generated_txt/cargo-info.txt +++ b/src/doc/man/generated_txt/cargo-info.txt @@ -1,16 +1,15 @@ CARGO-INFO(1) NAME - cargo-info — Display information about a package in the registry. - Default registry is crates.io + cargo-info — Display information about a package. SYNOPSIS cargo info [options] spec DESCRIPTION - This command displays information about a package in the registry. It - fetches data from the package’s Cargo.toml file and presents it in a - human-readable format. + This command displays information about a package. It fetches data from + the package’s Cargo.toml file and presents it in a human-readable + format. OPTIONS Info Options @@ -149,7 +148,7 @@ EXAMPLES 3. Inspect the serde package form the local registry: - cargo info serde --registry my-registry + cargo info serde --registry my-registry SEE ALSO cargo(1), cargo-search(1) diff --git a/src/doc/src/commands/cargo-info.md b/src/doc/src/commands/cargo-info.md index 3584eebd75a..f360f5cf50f 100644 --- a/src/doc/src/commands/cargo-info.md +++ b/src/doc/src/commands/cargo-info.md @@ -2,7 +2,7 @@ ## NAME -cargo-info --- Display information about a package in the registry. Default registry is crates.io +cargo-info --- Display information about a package. ## SYNOPSIS @@ -10,7 +10,7 @@ cargo-info --- Display information about a package in the registry. Default regi ## DESCRIPTION -This command displays information about a package in the registry. It fetches data from the package's Cargo.toml file +This command displays information about a package. It fetches data from the package's Cargo.toml file and presents it in a human-readable format. ## OPTIONS @@ -161,7 +161,7 @@ details on environment variables that Cargo reads. cargo info serde@1.0.0 3. Inspect the `serde` package form the local registry: - cargo info serde --registry my-registry + cargo info serde --registry my-registry ## SEE ALSO diff --git a/src/etc/man/cargo-info.1 b/src/etc/man/cargo-info.1 index 9c6ea85eb0d..734231604c6 100644 --- a/src/etc/man/cargo-info.1 +++ b/src/etc/man/cargo-info.1 @@ -4,11 +4,11 @@ .ad l .ss \n[.ss] 0 .SH "NAME" -cargo\-info \[em] Display information about a package in the registry. Default registry is crates.io +cargo\-info \[em] Display information about a package. .SH "SYNOPSIS" \fBcargo info\fR [\fIoptions\fR] \fIspec\fR .SH "DESCRIPTION" -This command displays information about a package in the registry. It fetches data from the package\[cq]s Cargo.toml file +This command displays information about a package. It fetches data from the package\[cq]s Cargo.toml file and presents it in a human\-readable format. .SH "OPTIONS" .SS "Info Options" @@ -193,7 +193,7 @@ details on environment variables that Cargo reads. .sp .RS 4 .nf - cargo info serde \-\-registry my\-registry + cargo info serde \-\-registry my\-registry .fi .RE .RE diff --git a/tests/testsuite/cargo_info/help/stdout.term.svg b/tests/testsuite/cargo_info/help/stdout.term.svg index c77fb4a119a..7bc930914ec 100644 --- a/tests/testsuite/cargo_info/help/stdout.term.svg +++ b/tests/testsuite/cargo_info/help/stdout.term.svg @@ -19,7 +19,7 @@ - Display information about a package in the registry + Display information about a package