-
Couldn't load subscription status.
- Fork 16
Closed
Labels
Description
As pointed out by @rjanja in #52, being able to receive "notifications" about various events (exec, receive, …) during the execution of a command will be needed by applications built on top of SSHKit.
We should therefore:
- identify which events an application would want to receive a notification
- define how to pass (optional) callback functions to
SSHKit.run/2,SSHKit.run/3, e.g.- pass separate functions for each event, or…
- a single function that receives an event type + event data, or…
- or pass a callback module implementing a defined interface?
- specify what information should be passed to the callbacks (likely host, command info…)
Let's gather some thoughts here and figure this out 🙂