Releases: Zen-CI/zenci-shell
Releases · Zen-CI/zenci-shell
Minor fixes
- 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
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
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
- time for each command
- status for each command
- output without command echo and shell prompt
- onEnd is full list of all commands.