assh icon indicating copy to clipboard operation
assh copied to clipboard

Add hooks (achievements ?)

Open moul opened this issue 12 years ago • 4 comments

moul avatar Aug 29 '13 20:08 moul

Is there an existing library you'd use to support this?

ccharlton avatar Jun 04 '15 05:06 ccharlton

Hum, I really don't know, actually I only thought about hooks for achievements (kind of https://github.com/icefox/git-achievements), but hooks may unlock some useful workflows

We need to think about which kind of hooks may be useful, for instance, something like:

  • on_pre_ssh_connection(host, port)
  • on_after_ssh_connection(host, port, pid?)
  • on_ssh_connection_closed(host, port, duration, exitCode)
  • on_error(host, port, errcode)

About the library specifically I have no preferences, just keep in mind I'm thinking about porting this project in golang to enhance speed, ease of install and recode everything from zero to fix some hacks I did in the Python version, I will probably keep the 2 versions for a time so people can keep their preferred one (#35)

moul avatar Jun 04 '15 08:06 moul

Cute. Don't forget one for when writing a config file with ASSH for the first time. :)

ccharlton avatar Jun 29 '15 22:06 ccharlton

hooks are implemented, achievements aren't yet

moul avatar Aug 10 '16 03:08 moul