UNPKG

cloudcms-cli

Version:
34 lines (30 loc) 826 B
var helper = require("../../../helper"); var AbstractCommand = require("../../abstract"); class UndeployModuleCommand extends AbstractCommand { constructor() { super({ "group": "module", "name": "undeploy", "description": "Undeploys a Module", "schema": { "properties": [{ "name": "id", "type": "string", "description": "Enter the module ID", "required": true, "args": ["id"] }] } }); } handle(options, callback) { // call workhorse function helper.undeployModule(options.id, function(err) { callback(err); }); } } module.exports = UndeployModuleCommand;