UNPKG

cloudcms-cli

Version:
45 lines (41 loc) 1.34 kB
var helper = require("../../../helper"); var AbstractCommand = require("../../abstract"); class ListApplicationsCommand extends AbstractCommand { constructor() { super({ "group": "platform", "name": "list-applications", "description": "Lists Applications", "schema": { "properties": [{ "name": "skip", "type": "number", "description": "Enter the pagination skip", "required": false, "args": ["skip", "s"] }, { "name": "limit", "type": "number", "description": "Enter the pagination limit", "required": false, "args": ["limit", "l"] }, { "name": "sort", "type": "string", "description": "Enter the pagination sort JSON", "required": false, "args": ["sort", "x"] }] } }); } handle(options, callback) { helper.listApplications(options.skip, options.limit, options.sort, function(err) { callback(err); }); } } module.exports = ListApplicationsCommand;