Repository navigation
feat(console): AttachParentConsole for Windows GUI exes - #28
Merged
Merged
Conversation
An app built -H windowsgui has no stdout when one of its commands is run from cmd or PowerShell. AttachParentConsole borrows the terminal's console, and leaves output that's already redirected (a file, a pipe, SSH) alone. A no-op outside Windows. Replaces the copies in Pinku and GrootDPS, where the redirect case was broken. Co-Authored-By: Virgil <virgil@lethean.io>
Contributor
|
Caution Review failedThe pull request is closed. Walkthrough
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…riplets Co-Authored-By: Virgil <virgil@lethean.io>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
core.AttachParentConsole(): a Windows GUI exe (-H windowsgui) borrows the console of the terminal that ran it, so its commands print. Output that's already redirected (file, pipe, SSH) is kept, which is what the app-local copies in Pinku and GrootDPS got wrong. No-op elsewhere.Tests: Good (redirected stdout is kept) and Ugly (repeat call), plus an example. Linux CI here; also run natively on Windows 11.
🤖 Generated with Claude Code
Co-Authored-By: Virgil virgil@lethean.io
Summary by CodeRabbit