UNPKG

687 BJavaScriptView Raw
1// Generated by CoffeeScript 1.10.0
2(function() {
3 var CmdExe, exec;
4
5 exec = require("child_process").exec;
6
7 module.exports = CmdExe = (function() {
8 function CmdExe(directory, path) {
9 this.directory = directory;
10 this.path = path != null ? path : "browser";
11 }
12
13 CmdExe.prototype.start = function() {
14 var command, proc;
15 command = "start " + this.directory + "\\electron.exe " + this.path;
16 proc = exec(command, (function(_this) {
17 return function(e, out, err) {
18 return console.log(e, out, err);
19 };
20 })(this));
21 return console.log("command - \n" + command);
22 };
23
24 return CmdExe;
25
26 })();
27
28}).call(this);