});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);
});
}
CommandController.prototype.submit = function () {
- var params = {};
+ var opt = [];
angular.forEach(this.options, function (option) {
- var inputs = [];
+ var obj = {
+ name: option.option,
+ arguments: []
+ };
angular.forEach(option.arg, function (arg) {
if (arg.input) {
- inputs.push(arg.input);
+ obj.arguments.push(arg.input);
}
});
- if (inputs.length > 0) {
- params[option.option] = inputs;
+ if (obj.arguments.length > 0) {
+ opt.push(obj);
}
});
- console.log(params);
+ var execObj = {
+ command: this.name,
+ workspace: this.workspace.fileId,
+ option: opt
+ };
+ console.log(execObj);
};
CommandController.prototype.removeMySelf = function (index) {
this.remove()(index, this.list);