cloudcms-cli
Version:
Cloud CMS Command-Line client
34 lines (30 loc) • 835 B
JavaScript
var helper = require("../../../helper");
var AbstractCommand = require("../../abstract");
class WatchJobCommand extends AbstractCommand
{
constructor()
{
super({
"group": "platform",
"name": "watch-job",
"description": "Watches a job on your platform",
"schema": {
"properties": [{
"name": "jobId",
"type": "string",
"description": "Enter the job ID",
"required": true,
"args": ["jobId", "id"]
}]
}
});
}
handle(options, callback)
{
// call workhorse function
helper.watchJob(options.jobId, function(err) {
callback(err);
});
}
}
module.exports = WatchJobCommand;