mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-12 23:14:10 +00:00
19 lines
427 B
JavaScript
19 lines
427 B
JavaScript
class PluginCommand {
|
|
constructor(embark) {
|
|
console.log(embark);
|
|
//this.embark = embark;
|
|
//this.registerCommands();
|
|
}
|
|
registerCommands() {
|
|
const self = this;
|
|
self.embark.registerConsoleCommand((cmd, _options) => {
|
|
return {
|
|
match: () => cmd === 'webserver start',
|
|
process: (cb) => self.events.request('start-webserver', cb)
|
|
};
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = PluginCommand;
|