cloudcms-cli
Version:
Cloud CMS Command-Line client
34 lines (30 loc) • 885 B
JavaScript
var helper = require("../../../helper");
var AbstractCommand = require("../../abstract");
class ReadRepositoryCommand extends AbstractCommand
{
constructor()
{
super({
"group": "platform",
"name": "read-repository",
"description": "Reads a Repository",
"schema": {
"properties": [{
"name": "repositoryId",
"type": "string",
"description": "Enter the repository ID",
"required": true,
"args": ["repository", "r"]
}]
}
});
}
handle(options, callback)
{
// call workhorse function
helper.readDatastore("repository", options.repositoryId, function(err) {
callback(err);
});
}
}
module.exports = ReadRepositoryCommand;