Skip to content

Add a "single column" mode for rustup toolchain list and friends #3519

Closed
@tgross35

Description

@tgross35

Problem you are trying to solve

I update nightly frequently and always wind up with a lot of toolchains that I am unlikely to use again:

$ rustup show
installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-2023-04-29-x86_64-unknown-linux-gnu
nightly-2023-06-15-x86_64-unknown-linux-gnu
nightly-2023-06-19-x86_64-unknown-linux-gnu
nightly-2023-07-14-x86_64-unknown-linux-gnu
nightly-2023-07-22-x86_64-unknown-linux-gnu
nightly-2023-07-28-x86_64-unknown-linux-gnu
nightly-2023-08-08-x86_64-unknown-linux-gnu
nightly-2023-08-24-x86_64-unknown-linux-gnu
1.60-x86_64-unknown-linux-gnu
1.63-x86_64-unknown-linux-gnu
stage1
stage2
1.68.2-x86_64-unknown-linux-gnu
1.71.0-x86_64-unknown-linux-gnu
1.71.1-x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.75.0-nightly (e5cfc5547 2023-10-28)

There is no easy way to remove all toolchains matching a pattern

Solution you'd like

Allow * as a wildcard for removal and other relevant commands so that this works:

$ rustup toolchain remove nightly-2023-*
info: no toolchain installed for 'nightly-2023-*'

Notes

rustup 1.26.0 (5af9b94 2023-04-05)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions