UNPKG

cloudcms-cli

Version:
34 lines (30 loc) 867 B
var helper = require("../../../helper"); var AbstractCommand = require("../../abstract"); class CreateRepositoryCommand extends AbstractCommand { constructor() { super({ "group": "platform", "name": "create-repository", "description": "Creates a repository", "schema": { "properties": [{ "name": "object", "type": "string", "description": "Enter the object JSON", "required": false, "args": ["object", "o"] }, ] } }); } handle(options, callback) { // call workhorse function helper.createRepository(options.object, function(err) { callback(err); }); } } module.exports = CreateRepositoryCommand;