Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend using cargo info after the cargo search results #14518

Closed
Rustin170506 opened this issue Sep 8, 2024 · 2 comments · Fixed by #14537
Closed

Recommend using cargo info after the cargo search results #14518

Rustin170506 opened this issue Sep 8, 2024 · 2 comments · Fixed by #14537
Assignees
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-search S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review

Comments

@Rustin170506
Copy link
Member

Rustin170506 commented Sep 8, 2024

Problem

Now that we have introduced cargo info', I think it would be useful if we could advise users to use the cargo info' command to inspect the specific crate from the search result.

Proposed Solution

$ cargo +nightly search clap
clap = "4.5.17"                     # A simple to use, efficient, and full-featured Command Line Argument Parser
clap-v3 = "3.0.0-beta.1"            # A simple to use, efficient, and full-featured Command Line Argument Parser
nameless-clap = "3.0.0-beta.2.2"    # A simple to use, efficient, and full-featured Command Line Argument Parser
conf = "0.1.0"                      # A derive-based config parser for CLI args and env parameters
clap-serde = "0.5.1"                # Provides a wrapper to deserialize clap app using serde.
clap-digest = "0.3.0"               # clap and digest integration
clap-nested = "0.4.0"               # Convenient `clap` for CLI apps with multi-level subcommands.
clap-markdown-dfir = "0.2.0"        # Autogenerate Markdown documentation for clap command-line tools
clap-stdin = "0.5.1"                # Provides a type for easily accepting Clap arguments from stdin
clap_derive-v3 = "3.0.0-beta.1"     # Parse command line argument by defining a struct, derive crate.
... and 785 crates more (use --limit N to see more)

note: to see more details about a specific crate, try `cargo info crate_name`

Notes

No response

@Rustin170506 Rustin170506 added C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage. labels Sep 8, 2024
@epage epage added Command-search S-needs-team-input Status: Needs input from team on whether/how to proceed. and removed S-triage Status: This issue is waiting on initial triage. labels Sep 9, 2024
@epage
Copy link
Contributor

epage commented Sep 9, 2024

I agree, having a way to bridge users from command-to-command would be useful. We do this today with cargo update -> cargo tree and cargo info -> cargo tree. Knowing how to see more about a search result would be useful.

I would make a couple tweaks

-note: to see more details about a specific crate, try `cargo info crate_name`
+note: to learn more a package, run `cargo info <name>`

@epage epage added S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review and removed S-needs-team-input Status: Needs input from team on whether/how to proceed. labels Sep 9, 2024
@Rustin170506
Copy link
Member Author

@rustbot claim

I will add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-search S-accepted Status: Issue or feature is accepted, and has a team member available to help mentor or review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants