GithubHelp home page GithubHelp logo

Comments (6)

djc avatar djc commented on July 17, 2024 1

I like -q/--quiet for this!

from rustup.

rami3l avatar rami3l commented on July 17, 2024

@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

  1. In case you don't know, you can do something like rustup toolchain uninstall 1.39-x86_64.

from rustup.

rbtcollins avatar rbtcollins commented on July 17, 2024

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.

rami3l avatar rami3l commented on July 17, 2024

@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.

rami3l avatar rami3l commented on July 17, 2024

I'll find some time to implement this --quiet thing then. Claim.

from rustup.

rami3l avatar rami3l commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.