sshkit.ex
sshkit.ex copied to clipboard
v1: Connection re-use, Streaming, …
This is still very much a work in progress, but I am quite happy with how it's chugging along and eager to release once I am happy with this next iteration of the package. 🚂
The main goals for the new release are: ✨
-
Connection re-use: In v0 the top-level
run,uploadanddownloadfunctions all set up an SSH connection to the remote each time they are invoked. The new API encourages connecting to each remote only once and then using the connection for multiple operations. - Better, high-level streaming support (#163, #150): The top-level functions of v0 made it tricky to stream the output of commands. They were mostly geared towards aggregating the complete output before returning.
I'll post more updates here as I am making progress. Happy about feedback and questions. ✌️
Much love to all of you 💚
- [ ] To do: #49
- [ ] To do: #54
- [ ] To do: #71
- [x] Closes #163
Exciting! Thanks for all your hard work on this, @pmeinhardt! Love these goals! 💯
I might drop SFTP-based uploads from the goals for the next release for reasons outlined here: https://github.com/bitcrowd/sshkit.ex/issues/162#issuecomment-752236745
Rebased :)