You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you look at SSHKit.SSH.run/3, it allows you to pass a :fun option (for maximum fun 😁).
The default for that is to capture/2 all of the output into a list.
You might be able to do streaming with this lower-level API by providing a custom function there for now? 🤔
Otherwise, I've actually been thinking about changing SSHKit's interface to behave more similar to that of mint, i.e. the process that calls SSHKit.run/2 would just receive messages as a result.
Happy if you could provide feedback on both a potential solution with the current API and maybe thoughts on the idea of a mint-like interface. ✌️
There has not been any activity/feedback on this in more than a year, so I will go ahead and close this.
Please feel free to re-open, Carter, in case we can be of help.
In the meanwhile, we're working on a new version of the package which should make it easier to stream output directly. You can follow the work in this PR if you're interested: #164
That is, if I do SSHKit.run("wget someaddress.com/file"), can we stream the output as it comes in rather than wait for it to all completely finish?
The text was updated successfully, but these errors were encountered: