revert: revert formatting

This commit is contained in:
Mirco Sanguineti 2019-04-12 15:25:12 +03:00 committed by GitHub
parent 88d6ac1c4e
commit b93ecfcbf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,24 +89,24 @@ const testPath = shell.env["path"];
const version = shell.exec("node --version").stdout;
// $ExpectType ShellString
const version2 = shell.exec("node --version", { async: false });
const version2 = shell.exec("node --version", {async: false});
const output = version2.stdout;
// $ExpectType ChildProcess
const asyncVersion3 = shell.exec("node --version", { async: true });
const asyncVersion3 = shell.exec("node --version", {async: true});
let pid = asyncVersion3.pid;
declare let isAsync: boolean;
// $ExpectType ShellString | ChildProcess
const unknownUntilRuntime = shell.exec("node --version", { async: isAsync });
const unknownUntilRuntime = shell.exec("node --version", {async: isAsync});
shell.exec("node --version", { silent: true }, (code, stdout, stderr) => {
shell.exec("node --version", {silent: true}, (code, stdout, stderr) => {
const version = stdout;
});
shell.exec(
"node --version",
{ silent: true, async: true, cwd: "/usr/local/bin" },
{silent: true, async: true, cwd: "/usr/local/bin"},
(code, stdout, stderr) => {
const version = stdout;
}
@ -149,18 +149,18 @@ shell.touch("-c", "/Users/brandom/test1");
shell.touch("-c", "/Users/brandom/test1", "/Users/brandom/test2");
shell.touch("-c", ["/Users/brandom/test1", "/Users/brandom/test2"]);
shell.touch({ "-r": "/some/file.txt" }, "/Users/brandom/test1");
shell.touch({"-r": "/some/file.txt"}, "/Users/brandom/test1");
shell.touch(
{ "-r": "/some/file.txt" },
{"-r": "/some/file.txt"},
"/Users/brandom/test1",
"/Users/brandom/test2"
);
shell.touch({ "-r": "/oome/file.txt" }, [
shell.touch({"-r": "/oome/file.txt"}, [
"/Users/brandom/test1",
"/Users/brandom/test2"
]);
shell.head({ "-n": 1 }, "file*.txt");
shell.head({"-n": 1}, "file*.txt");
shell.head("file1", "file2");
shell.head(["file1", "file2"]); // same as above
@ -169,7 +169,7 @@ shell.sort("-r", "foo.txt");
shell.sort("-r", ["file.txt"]);
shell.sort(["file.txt"]);
shell.tail({ "-n": 1 }, "file*.txt");
shell.tail({"-n": 1}, "file*.txt");
shell.tail("file1", "file2");
shell.tail(["file1", "file2"]); // same as above
@ -195,10 +195,10 @@ shell.config.globOptions = {
shell
.ls("dir")
.grep(/^stuff/)
.head({ "-n": 5 }).stdout;
.head({"-n": 5}).stdout;
const foo = new shell.ShellString('hello world');
const farr = new shell.ShellString(['hello', 'world']);
const bar = shell.ShellString('hello world');
const boo = shell.ShellString('hello world');
const barr = shell.ShellString(['hello', 'world']);