Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
SimpleShell.registerCommand({
name: 'help',
help: 'Show this help menu',
handler: helpHandler
});
SimpleShell.registerCommand({
name: 'exit',
help: 'Exit the console',
handler: function() {
rl.close();
}
});
}
SimpleShell.initialize = initialize;
SimpleShell.registerCommand = registerCommand;
SimpleShell.startConsole = startConsole;
SimpleShell.log = log;
SimpleShell.info = info;
SimpleShell.warn = warn;
SimpleShell.error = error;
SimpleShell.success = success;
module.exports = SimpleShell;
})(module);