Skip to content
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

Cancel reading from stdin on Ctrl-C #794

Merged
merged 3 commits into from
Jul 7, 2022

Conversation

mrnugget
Copy link
Contributor

This is essentially a copy-paste implementation of the ideas presented
in this comment here: golang/go#20280 (comment)

It fixes #775 and helps with the issue described in #793 (comment). Not sure if it has unintended side-effects.

screenshot_2022-06-23_10 26 51@2x

Test plan

  • Manually tested only the src batch preview -f - case, not the other cases.

mrnugget and others added 3 commits July 7, 2022 15:51
This is essentially a copy-paste implementation of the ideas presented
in this comment here: golang/go#20280 (comment)

It fixes #775 and helps with the issue described in #793 (comment). Not sure if it has unintended side-effects.
@BolajiOlajide BolajiOlajide force-pushed the mrn/handle-ctrl-c-batch-preview branch from 53e0208 to 964c118 Compare July 7, 2022 14:54
@BolajiOlajide BolajiOlajide merged commit ef2ba4d into main Jul 7, 2022
@BolajiOlajide BolajiOlajide deleted the mrn/handle-ctrl-c-batch-preview branch July 7, 2022 15:03
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Cancel reading from stdin on Ctrl-C

This is essentially a copy-paste implementation of the ideas presented
in this comment here: golang/go#20280 (comment)

It fixes #775 and helps with the issue described in #793 (comment). Not sure if it has unintended side-effects.

* Add comments and remove interface

* update changelog

Co-authored-by: BolajiOlajide <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Control+C does not work when reading batch spec as standard input
2 participants