Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustup show: add flag to show only active toolchain #1406

Closed
TimNN opened this issue Apr 29, 2018 · 5 comments · Fixed by #1654
Closed

rustup show: add flag to show only active toolchain #1406

TimNN opened this issue Apr 29, 2018 · 5 comments · Fixed by #1654

Comments

@TimNN
Copy link
Contributor

TimNN commented Apr 29, 2018

I often want to know which toolchain is active for a certain directory (and which directory has the override). Having rustup show first print a few dozen lines of installed toolchains is rather annoying in that situation.

It would be nice to have a flag which would cause rustup show to only print the active toolchain. (For me it would even be preferable to make that the default behavior, since the list of installed toolchains is easily available via rustup toolchain list).

@das-sein
Copy link
Contributor

das-sein commented Feb 5, 2019

@Diggsey I think this is resolved by rustup show active-toolchain, right?

@dwijnand
Copy link
Member

Possibly resolved by #1633 (using rustup default instead)?

@TimNN
Copy link
Contributor Author

TimNN commented Feb 11, 2019

@Diggsey I think this is resolved by rustup show active-toolchain, right?

This does not quite address my original issue: It shows the active toolchain, but not why it is active (e.g. which directory the override is coming from, or that the default is active).

Possibly resolved by #1633 (using rustup default instead)?

I don't have a build with that patch, but from the name of the command, I don't believe that this will resolve my issue: I'm interested in the active toolchain, not the default one.

@dwijnand
Copy link
Member

Good point.

@das-sein
Copy link
Contributor

das-sein commented Feb 12, 2019

@Diggsey I think I figured out what you mean. The rustup show command outputs the reason for the override for any override you have set, but rustup show active-toolchain didn't do that. I've started a PR with the more standard behavior. Let me know how I did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants