cargo info implementation (similar to npm show/info cmd) #9032
Labels
A-new-subcommand
Area: new subcommand
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
So I frequently use with ruby/npm/apt the
show
/info
commands to get more package information (link to git, homepage, keywords, etc), but as far as I know this isn't possible with cargo. I thought it would be really useful to have the ability to use something along the lines of:cargo show [pkgname]
to get some basic info about a package.Describe the solution you'd like
I created a script that implements the crates.io api, it is just preliminary and the only requirement is the package
jq
. I included the version I made which has a colored output, although this could easily be removed/disabled by replacing the color-echo cmds simply with echo.That script is here, id be curious what people think.
To run:
$PATH
, or just run locally via./cargo-show
. (obviously chmod +x it as well)To search:
cargo-show [packagename]
Looks like this:
Notes
The text was updated successfully, but these errors were encountered: