-
Notifications
You must be signed in to change notification settings - Fork 0
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
Installation header output should send to stderr #28
Comments
How about updating |
Unfortunately for my use case, the output I'm trying to capture is actually from stderr (nuance of the current implementation in semver-audit-dart) Arguably, this is incorrect, and should actually be stdout, but I'm unsure of the downstream changes that adjusting that would be More generally though, is using stderr for something like that misuse of what stderr is designed to be used for? It is my impression that some executions rely on the output of stederr to determine failure cases |
I think it varies largely because there are only two options to write to, but from what I've seen on the topic, the expected output of a command should go to stdout and everything else (not just errors) should go to stderr. Additionally, I think the exit code should be the primary indicator of whether it failed (and what type of failure it was), not the presence of content on stderr. The expected output of a command is important here, since it could mean that the same type of content (e.g. help or usage text) goes to a different place based on the command being run. If the user runs Similarly for the use case in this issue, I'd view Couple of links about this:
For the suggestion in the original issue description of having |
Huh, seems more murky than I was expecting I do like this though, seems like a good principal behind the concept
By that logic, I could get behind the installation output sending to stderr |
A common usage for dpx is to leverage it within github actions to prevent the manual
dart pub global activate...
stepIn this case we always pass
-y
since it is known that the executable doesn't actually exist, and we want to force install itWhen doing this though, the output for installing the package is still emitted:
the major downside of this is if we pipe the output of a command this verbose header is included:
Thoughts on silencing all command installation output when
-y
is provided?The text was updated successfully, but these errors were encountered: