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
Add /silent #77
Add /silent #77
Conversation
This reverts commit 35d291b.
@SaifAqqad |
@joedf Now that ConsoleApp is removed I think there might be a problem with outputting errors only to stderr, as you can't see the errors with piping ( |
Yeah, that's the issue... If we don't use Console subsystem then the output is under a "layer" so it quite doesn't "reach" the - console output... I think there's a way around it, but it doesn't come to mind right now... Edit: nevermind, I tried some things. didnt get it to work.. :/ |
I think we could either output errors to both stdout and stderr, or we could revert it to how it was before, which is stdout only. |
Console apps inherit the console of the parent process if it has one, and by default have stdout and stderr set to the console. GUI apps do not have a console or any std handles by default; i.e. This will output to stderr if it exists, otherwise to stdout: try
FileAppend Error to stderr`n, **
catch
FileAppend Error to stdout`n, * |
I just tested this, it works perfectly with |
@TAC109 I'm thinking to merge this is if there are no objections. I think it's in a good state now. |
Is there any reason why this has not been reviewed by @TAC109 already? |
@SaifAqqad Apologies for the delay, but I have been busy adding changes required for the upcoming v2 beta releases. Also attempting to squash a couple of bugs as well. I hope to review your changes soon. Cheers |
No worries then, take your time :D |
@SaifAqqad
After these alterations have been made and your fork updated with the recent changes I have made here, I will review this PR in more detail. Cheers |
@TAC109 |
In that case I have unlinked #75 from this PR. And perhaps, we should just close #75 since suitable alternatives were presented? |
@SaifAqqad
Cheers |
That does make more sense tbh, I'll merge your latest changes first and then do that. |
You were right, vscode was saving the file with UTF-8 not UTF-8 with BOM, should be fixed now |
The commits do the following:
/silent
which disables the MsgBoxes and instead outputsUtil_Error
to stderr (or stdout if stderr fails) andUtil_Info
to stdout.verbose
parameter to/silent
to outputUtil_Status
to stdout.I have checked the "Allow edits by maintainers" box, so you can modify the changes however you see fit.