Cargo --list group installed and alias #12719
Labels
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.
Problem
When running cargo without a command it shows a --list option. This lists "all commands", however the text that shows implies that they are installed. This can be confusing and less helpful.
the --list command should show the different types in groups, this data is already dealt with in the function that writes too console, so it should be quick and easy, in fact i have a pr ready too submit but i'm kind of new too rust so i'm not sure if this is the best way too do this and would like some input
Proposed Solution
https://github.com/Hellzbellz123/cargo/tree/fix-list
cargo --list should group aliases, built in commands and installed commands separately
output of cargo --list should look as below
❯ cargo run -- --list
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running
target/debug/cargo --list
Configured Aliases:
t alias: alias: test
bump-check alias: run --package xtask-bump-check --
....
Built-In Commands:
yank Remove a pushed crate from the index
add Add dependencies to a Cargo.toml manifest file
....
Installed Commands:
zigbuild
xwin
.....
Notes
No response
The text was updated successfully, but these errors were encountered: