cloudcms-cli
Version:
Cloud CMS Command-Line client
31 lines (25 loc) • 504 B
JavaScript
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;