cloudcms-cli
Version:
Cloud CMS Command-Line client
41 lines (37 loc) • 1.14 kB
JavaScript
var helper = require("../../../helper");
var AbstractCommand = require("../../abstract");
class ListPatchesCommand extends AbstractCommand
{
constructor()
{
super({
"group": "patch",
"name": "list",
"description": "Lists the available patches in the cluster",
"schema": {
"properties": [{
"name": "username",
"type": "string",
"description": "Admin username",
"required": true,
"args": ["username", "u"]
}, {
"name": "password",
"type": "string",
"description": "Admin password",
"required": true,
"hidden": true,
"args": ["password", "p"]
}]
}
});
}
handle(options, callback)
{
// call workhorse function
helper.listPatches(options.username, options.password, function(err) {
callback(err);
});
}
}
module.exports = ListPatchesCommand;