Fixed ShellJS.exec() definition in .d.ts.

This commit is contained in:
Alan
2015-01-31 18:36:28 -05:00
parent e5d5d87e49
commit ce14ae27a0
2 changed files with 62 additions and 21 deletions
+26
View File
@@ -85,8 +85,34 @@ shell.ln("-sf", "file", "existing");
var testPath = shell.env["path"];
import child = require("child_process");
var version = shell.exec("node --version").output;
var version2 = <shell.ExecOutputReturnValue>shell.exec("node --version", { async: false });
var output = version2.output;
var asyncVersion3 = <child.ChildProcess>shell.exec("node --version", { async: true });
var pid = asyncVersion3.pid;
shell.exec("node --version", { silent: true }, function (code, output) {
var version = output;
});
shell.exec("node --version", { silent: true, async: true }, function (code, output) {
var version = output;
});
shell.exec("node --version", function (code, output) {
var version = output;
});
shell.exec("node --version", function (code: number) {
var num: number = code;
});
var childProc = shell.exec("node --version", function (code: number) {
var num: number = code;
});
var pid = childProc.pid;
shell.chmod(755, "/Users/brandon");
shell.chmod("755", "/Users/brandon"); // same as above
shell.chmod("u+x", "/Users/brandon");