-
Notifications
You must be signed in to change notification settings - Fork 69
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
superfluous output on stdout doesn't help programmatic usage #3
Comments
Glad to hear you’re liking it! So I assume you’re trying to pipe the output or spawn a child process and intercept STDOUT? If so, I can go ahead and remove that or hide it behind a flag. I’ll have to check how rust sends exit codes though to emit a 0 on success. Thanks! |
(Whoops didn’t see your example 😅) |
thanks for the quick answer! I added the example afterwards, so that may be it :) I tried to have a look at https://stackoverflow.com/a/30285110/244058 and https://doc.rust-lang.org/std/process/fn.exit.html and wanted to try a PR but I never edited rust code, so yeah. |
No worries! If you’d like to attempt a PR, let me know and I’d be happy to review the PR. Otherwise, I’ll try and take care of it this week. |
I'm stuck on a plane, so I went ahead and took care of this. 1.2.0 should resolve this with simplified output for |
@mike-engel awesome! thanks a lot :) |
Summary
Having displayed
on stdout seems superfluous. Maybe it shouldn't be displayed at all (or stderr at least), and should return 0 or 1 in case of success or failure respectively, thus following more the UNIX philosophy.
That would allow me to do stuff like:
Steps to reproduce
Expected behavior
Thanks for this CLI! awesome.
The text was updated successfully, but these errors were encountered: