UNPKG

cloudcms-cli

Version:
31 lines (25 loc) 504 B
class AbstractCommand { constructor(config) { this.config = config || {}; if (config.group) { this.group = config.group; } this.name = config.name; this.description = config.description; } schema() { return this.config.schema; } /** * TO BE IMPLEMENTED BY EXTENSION CLASS * * @param options * @param callback */ handle(options, callback) { } } module.exports = AbstractCommand;