Skip to content

Releases: Zen-CI/zenci-shell

Minor fixes

21 Jul 02:37

Choose a tag to compare

  • Properly handle timeout reset.
  • emit error if ssh connection closed while task was running
  • emit commandCompleted with status=1 when ssh connection closed while task was running

Big changes

13 Jul 21:55

Choose a tag to compare

All code has been cleaned up and changed.

  • no more msg event
  • debug package for debug output
  • events limited to connect, ready, end, close, error, commandProcessing, commandComplete
  • keep_alive setting introduced.
  • new methods exec() and end().
  • exec support callback to handle command output from the command.

onClose and onError events

10 Jul 15:11

Choose a tag to compare

SSH connection could be interrupted in a middle.
To handle this situation added event:

  onClose: function( has_error, command ) {
    //has_error is true if session has bin interrupted.
    //command is latest command that was processing and did not finish.
    console.log(command);
  },

onError: function ( err, type, close) {
        console.log( "onError" );
        console.log(err);
        console.log(type);
        console.log(close);
      },

Initial release

09 Jul 19:48

Choose a tag to compare

  • time for each command
  • status for each command
  • output without command echo and shell prompt
  • onEnd is full list of all commands.