cloudcms-cli
Version:
Cloud CMS Command-Line client
36 lines (32 loc) • 1.02 kB
JavaScript
var helper = require("../../../helper");
var AbstractCommand = require("../../abstract");
class SampleProjectConnectCommand extends AbstractCommand
{
constructor()
{
super({
"group": "sample",
"name": "connect",
"description": "Connects to the Sample Project application and downloads a gitana.json file",
"schema": {
"properties": [{
"name": "out",
"type": "string",
"description": "Enter the output file path:",
"helper": "The output file path",
"required": false,
"default": "gitana.json",
"args": ["out", "o"]
}]
}
});
}
handle(options, callback)
{
// call workhorse function
helper.sampleProjectConnect(options.out, function(err) {
callback(err);
});
}
}
module.exports = SampleProjectConnectCommand;