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

Refactor code to support realtime streaming of shell output #223

Merged
merged 5 commits into from Aug 26, 2020

Conversation

jacebrowning
Copy link
Owner

FYI @spurnvoj since I'm modifying some of your code to get this ready for release.

:param _shell: force executing the program into a real shell
a Windows shell command (i.e: dir, echo) needs a real shell
but not a regular program (i.e: calc, git)
:param _ignore: ignore non-zero return codes
"""
if not _show:
_stream = False
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal here is to avoid passing an extra argument in places where its value can be inferred.

@jacebrowning jacebrowning merged commit e1152fa into main Aug 26, 2020
@jacebrowning jacebrowning deleted the realtime-refactor branch August 26, 2020 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant