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