-
Notifications
You must be signed in to change notification settings - Fork 5
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
Question: Does cradle
support streaming output
#190
Comments
What are you looking for in a wrapper? Just better ergonomics, or are there other requirements?
We test on Windows, Mac, and Linux, so everything should work.
We don't currently support streaming, but it seems to be a common request. I don't think we have any particular objection to adding it, although we'd have to figure out a nice API for it.
Thank you for the kind words! |
right now, we shell out on most things and just call 'external' commands. external means they're not nushell built in commands. so, for windows, that would be something like so, i'd like to fix that issue but i'm also interested in making it easier to call so we don't have to remember all the minutiae for properly launching a command.
excellent!
understood. i guess put our vote in the camp for streaming output. :) Thanks again. Good luck! |
Noob here. but what exactly "streaming output" is? I'm asking because i'm using cradle to run pacman (for installing packages) and the output looks like that pacman stuck although it actually doesn't. What i think that happened here is that the stdout isn't flushed frequently? edit: I wondered if that is a pacman behavior if executed without a shell? (or a TTY?) |
I think there's two related but separate issues here. I'll try to explain: When a child process writes something to
(All this works very similarly for I believe this issue here is about number 1. @fdncred, please correct me if I'm wrong. @sabitm: It sounds like your issue is number 2. Could you post a code snippet of how exactly you're calling |
Thanks for your reply! After further investigation, i can conclude that it just a different pacman's behavior if executed without a shell (cradle does nothing wrong!). When tested with different programs that does nothing special with shell features (like color, clearing, etc.), I can confirm that the program's output (stream) behave similarly when executed with cradle or shell. If you're curious, this is like running |
I see. Yeah, it sounds like (I think |
I'm one of the maintainers of
nushell
and am interested in a cross-platform wrapper for std::process::Command. We have a couple requirements and I was wondering if your crate supports those.Thanks and great work on this!
The text was updated successfully, but these errors were encountered: