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
Provide a subprocess-compatible interface in cmd #138
Comments
The reason for this return API is because However, in all but the I'm open to the idea of improving the return type, but at the very least it must be backwards compatible with the current return type as it's used in quite a few places. |
@jaraco I've come up with a backwards compatible solution in ac35aaa If all goes well in testing, version 1.3.0 ubelt.cmd will return a |
@jaraco 1.3.0 is released and contains the updated interface. I think this can be marked as done. |
I was exploring using
subprocess_tee
when I found it doesn't support Windows and has issues with Python 3.12.When I tried dropping in
ubelt.cmd
as a replacement, I found it has a very different interface than subprocess, returning a dict instead of an object and having different keys.It would be nice if the result from command was an object similar to the one returned by
subprocess.Popen
(or even identical), so that code like this can readily switch between the implementations.The text was updated successfully, but these errors were encountered: