Comments (6)
I like -q/--quiet
for this!
from rustup.
@tgross35 Thanks a lot for filing this issue!
This is also one of the pain points that I often encounter when using rustup
and elan
, so I'm quite willing to address it. However, due to how rustup
resolves toolchain names 1, this might not be a simple fix.
Furthermore, one might argue that a one-line script like the following will suffice:
rustup toolchain list | cut -d ' ' -f1 | grep nightly-2023- | xargs rustup uninstall
@rbtcollins @djc What do you think?
Footnotes
-
In case you don't know, you can do something like
rustup toolchain uninstall 1.39-x86_64
. ↩
from rustup.
the (default) in rustup toolchain list
makes that harder to work with.
I wonder if dropping that default, making the list more API-like, adding 'rustup toolchain default' or something similar, would make this nicer.
I'm a bit skeptical of rustup doing its own globbing here.
from rustup.
@rbtcollins Okay, I think it would be better to find a workaround then.
IMHO it would be nice if we can leave the output as-is and add a new flag specifically to give simple outputs for non-interactive uses.
For instance, this is what we'll get if we borrow the "single-column mode" (written as -1
) from brew
:
> rustup toolchain list
stable-aarch64-apple-darwin (default)
nightly-aarch64-apple-darwin
> rustup toolchain list -1
stable-aarch64-apple-darwin
nightly-aarch64-apple-darwin
I don't quite like -1
though, and would possibly call it --simple
/-s
.
Or we can add a new --quiet
for this purpose.
Anyway, this change should probably be mirrored to rustup target list
and other similar commands.
from rustup.
I'll find some time to implement this --quiet
thing then. Claim.
from rustup.
Now that the output format is being changed in #3225, I think we should wait a bit before implementing this.
from rustup.
Related Issues (20)
- Cannot update on Windows due to renaming issues HOT 2
- $HOME/.cargo/env missing on Windows HOT 1
- warning: spurious network error (3 tries remaining): [7] Couldn't connect to server (Failed to connect to 127.0.0.1 port 4780 after 0 ms: Couldn't connect to server) HOT 9
- warning: spurious network error (3 tries remaining): [7] Couldn't connect to server (Failed to connect to 127.0.0.1 port 4780 after 0 ms: Couldn't connect to server) HOT 3
- `rustup set default-host` does not change the default toolchain
- `rustup` installation broken after upgrading from macOS 13.6 to 14.2 HOT 6
- Warnings from running `rustup update` command
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh HOT 1
- MacOS, RustUp installation doesn't work as expected. HOT 2
- i can't rustup update HOT 5
- tauri ios init fails with "failed to install target with rustup" HOT 1
- Say what ought to happen when running rustup doc. HOT 3
- windows-gnu: Allow installing rust-mingw as a target component HOT 2
- Add `cargo` sh-completions to install guide
- Meta: Update `release-process.md` to match the new workflow based on GitHub Merge Queue HOT 2
- Component conflicts against it's own manifest? HOT 3
- Prefer using symlinks on Windows HOT 2
- when rustup finds an existing rust install it doesn't give the user any hints about what to do next HOT 4
- Log the `registry` used when run `rustup udpate/install` (and other commands use registry). HOT 3
- WSL installation should suggest use of POSIX `.` instead of `source` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustup.