myt/lib/command.js

17 lines
255 B
JavaScript

/**
* Base class for Myt commands.
*/
module.exports = class MytCommand {
get usage() {
return {};
}
get localOpts() {
return {};
}
async run(myt, opts) {
throw new Error('run command not defined');
}
}