-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support simple output format #370
Comments
Sounds plausible! I'll see what I can do :) |
I'm currently working on implementing a new way to report output to the user. I hope to complete that process this or next week. After that process is complete, I'll add this, and then we're about ready for a new release as well. |
Hey @spenserblack, I have been working on this feature request. Currently, I'm printing all output to stderr*, but looking at your example of a shell script, I think it would be favourable for your use case to print a success to stdout and a failure to stderr. What do you think? * Or to any |
Yes, that's exactly what I was thinking 😃
|
In #431 (merged), I added the minimal output mode, accessible via Running your example script gives: A successful run:
A failed run (i.e. no compatible version found):
Additional documentation can be found in the book here. If you find a bug, or like to have this implementation changed (e.g. have more details about what went wrong, I would be happy to implement this as well). |
This is awesome, thanks! |
First, thank you for making this crate!
I made a simple GitHub Action so that I could use this during workflows. One of the things I've noticed is that there doesn't seem to be simple output, but either a "pretty" output for humans, or multiple JSON outputs.
For the purposes of writing shell scripts to check the MSRV, I think it would be even beneficial to have an output format that does nothing but:
This would remove the need for a tool like
jq
to parse the output, and shell scripts that usecargo msrv
could be simplified to something vaguely likeThe text was updated successfully, but these errors were encountered: