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

await command with _return_cmd True returns RunningCommand #744

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

hartmans
Copy link
Contributor

@hartmans hartmans commented Jan 8, 2025

If _return_cmd is True, have await return the RunningCommand object rather than a string representation. Fixes #743

I'm having trouble getting the lint tox environment to pass; it fails even before my change wanting to reformat sh.py. I don't understand what the diff is trying to do so I don't know if it is a local environmental issue or something else.

If _return_cmd is True, have __await__ return the RunningCommand
object rather than a string representation. Fixes amoffat#743

Add test for this behavior and adjust existing tests because the baked
test python instance is created with _return_cmd True.
@amoffat
Copy link
Owner

amoffat commented Jan 8, 2025

Good work, and thank you for including a test! Merging now, and will cut a release later today.

@amoffat amoffat merged commit bdb5f44 into amoffat:develop Jan 8, 2025
19 checks passed
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.

Need way for await sh.command to return RunningCommand
2 participants