UNPKG

cloudcms-cli

Version:
43 lines (39 loc) 1.33 kB
var helper = require("../../../helper"); var AbstractCommand = require("../../abstract"); class ApplicationOpenCommand extends AbstractCommand { constructor() { super({ "group": "hosting", "name": "open", "description": "Opens the application deployment URL", "schema": { "properties": [{ "name": "applicationId", "type": "string", "description": "Enter the application ID:", "helper": "The ID of the application", "required": true, "args": ["application", "a"] }, { "name": "deploymentKey", "type": "string", "description": "Enter the deployment key:", "helper": "The deployment key", "required": false, "default": "default", "args": ["deployment", "d"] }] } }); } handle(options, callback) { // call workhorse function helper.applicationDeploymentOpen(options.applicationId, options.deploymentKey, function(err) { callback(err); }); } } module.exports = ApplicationOpenCommand;