trepan-ni
Version:
Trepan debugger for Node Inspect (and based on node inspect debugger)
26 lines (21 loc) • 438 B
JavaScript
// Copyright 2018 Rocky Bernstein
;
/*========================================
Debugger 'quit' command.
==========================================*/
exports.Init = function(intf, repl) {
intf.defineCommand('quit', repl, {
puased: false,
help: `Quit debugger
Usage: quit
See also:
--------
kill
`,
aliases: ['exit'],
// run: intf.quit
run: function() {
repl.rli.emit('exit');
}
});
};