examples/console-client/index.js
function done(context, err, message) {
    if (err) return fail(context, err);
    if (typeof message !== "undefined") shell.write(message);
    context.end();
}
function done(context, err, message) {
    if (err) return fail(context, err);
    if (typeof message !== "undefined") shell.write(message);
    context.end();
}
function done ( context , err , message ) { if ( err ) return fail ( context , err ) ; if ( typeof message !== "undefined" ) shell . write ( message ) ; context . end ( ) ; }
finish command successfully or with an error
finish command successfully or with an error