mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
revert: revert formatting
This commit is contained in:
parent
88d6ac1c4e
commit
b93ecfcbf9
@ -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']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user