Skip to content

Allow specifying callbacks for command events #53

@pmeinhardt

Description

@pmeinhardt

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:

  1. identify which events an application would want to receive a notification
  2. 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?
  3. specify what information should be passed to the callbacks (likely host, command info…)

Let's gather some thoughts here and figure this out 🙂

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions