UNPKG

cloudcms-cli

Version:
46 lines (42 loc) 1.46 kB
var helper = require("../../../helper"); var AbstractCommand = require("../../abstract"); class ListDatastoreDeletionsCommand extends AbstractCommand { constructor() { super({ "group": "admin", "name": "list-datastore-deletions", "description": "Hands back a list of datastores which were deleted but remain on disk within MongoDB", "schema": { "properties": [{ "name": "text", "type": "boolean", "description": "Hand back the result as text output", "args": ["text"] }, { "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.listDatastoreDeletions(options.text, options.username, options.password, function(err) { callback(err); }); } } module.exports = ListDatastoreDeletionsCommand;