summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/examples/chat/server_test.ts2
-rw-r--r--std/examples/test.ts2
-rw-r--r--std/examples/tests/cat_test.ts2
-rw-r--r--std/examples/tests/catj_test.ts2
-rw-r--r--std/examples/tests/colors_test.ts2
-rw-r--r--std/examples/tests/curl_test.ts2
-rw-r--r--std/examples/tests/echo_server_test.ts2
-rw-r--r--std/examples/tests/welcome_test.ts2
-rw-r--r--std/examples/tests/xeval_test.ts4
-rw-r--r--std/fs/empty_dir_test.ts2
-rw-r--r--std/fs/exists_test.ts2
-rw-r--r--std/fs/expand_glob_test.ts2
-rw-r--r--std/http/file_server_test.ts6
-rw-r--r--std/http/racing_server_test.ts2
-rw-r--r--std/http/server_test.ts4
-rw-r--r--std/manual.md4
16 files changed, 21 insertions, 21 deletions
diff --git a/std/examples/chat/server_test.ts b/std/examples/chat/server_test.ts
index 65e0b5958..e09771e52 100644
--- a/std/examples/chat/server_test.ts
+++ b/std/examples/chat/server_test.ts
@@ -12,7 +12,7 @@ const { test, build } = Deno;
async function startServer(): Promise<Deno.Process> {
const server = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-net",
"--allow-read",
diff --git a/std/examples/test.ts b/std/examples/test.ts
index 1c817dfd1..d5dd8bedc 100644
--- a/std/examples/test.ts
+++ b/std/examples/test.ts
@@ -14,7 +14,7 @@ Deno.test(function t2(): void {
/** A more complicated test that runs a subprocess. */
Deno.test(async function catSmoke(): Promise<void> {
const p = run({
- args: [
+ cmd: [
Deno.execPath(),
"run",
"--allow-read",
diff --git a/std/examples/tests/cat_test.ts b/std/examples/tests/cat_test.ts
index 34b60bc5d..0f17b798d 100644
--- a/std/examples/tests/cat_test.ts
+++ b/std/examples/tests/cat_test.ts
@@ -4,7 +4,7 @@ import { assertStrictEq } from "../../testing/asserts.ts";
Deno.test("[examples/cat] print multiple files", async () => {
const decoder = new TextDecoder();
const process = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-read",
"cat.ts",
diff --git a/std/examples/tests/catj_test.ts b/std/examples/tests/catj_test.ts
index 2d667dacc..3f246a65f 100644
--- a/std/examples/tests/catj_test.ts
+++ b/std/examples/tests/catj_test.ts
@@ -77,7 +77,7 @@ Deno.test("[examples/catj] read from stdin", async () => {
function catj(...files: string[]): Deno.Process {
return Deno.run({
- args: [Deno.execPath(), "--allow-read", "catj.ts", ...files],
+ cmd: [Deno.execPath(), "--allow-read", "catj.ts", ...files],
cwd: "examples",
stdin: "piped",
stdout: "piped",
diff --git a/std/examples/tests/colors_test.ts b/std/examples/tests/colors_test.ts
index e01e4d558..7c01cd8d6 100644
--- a/std/examples/tests/colors_test.ts
+++ b/std/examples/tests/colors_test.ts
@@ -4,7 +4,7 @@ import { assertStrictEq } from "../../testing/asserts.ts";
Deno.test("[examples/colors] print a colored text", async () => {
const decoder = new TextDecoder();
const process = Deno.run({
- args: [Deno.execPath(), "colors.ts"],
+ cmd: [Deno.execPath(), "colors.ts"],
cwd: "examples",
stdout: "piped"
});
diff --git a/std/examples/tests/curl_test.ts b/std/examples/tests/curl_test.ts
index b23e73210..a36da83ba 100644
--- a/std/examples/tests/curl_test.ts
+++ b/std/examples/tests/curl_test.ts
@@ -19,7 +19,7 @@ Deno.test({
const decoder = new TextDecoder();
const process = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-net",
"curl.ts",
diff --git a/std/examples/tests/echo_server_test.ts b/std/examples/tests/echo_server_test.ts
index 3c1893342..164f65357 100644
--- a/std/examples/tests/echo_server_test.ts
+++ b/std/examples/tests/echo_server_test.ts
@@ -8,7 +8,7 @@ Deno.test("[examples/echo_server]", async () => {
const encoder = new TextEncoder();
const decoder = new TextDecoder();
const process = Deno.run({
- args: [Deno.execPath(), "--allow-net", "echo_server.ts", `${port}`],
+ cmd: [Deno.execPath(), "--allow-net", "echo_server.ts", `${port}`],
cwd: "examples",
stdout: "piped"
});
diff --git a/std/examples/tests/welcome_test.ts b/std/examples/tests/welcome_test.ts
index 304a57868..60c55dc0b 100644
--- a/std/examples/tests/welcome_test.ts
+++ b/std/examples/tests/welcome_test.ts
@@ -4,7 +4,7 @@ import { assertStrictEq } from "../../testing/asserts.ts";
Deno.test("[examples/welcome] print a welcome message", async () => {
const decoder = new TextDecoder();
const process = Deno.run({
- args: [Deno.execPath(), "welcome.ts"],
+ cmd: [Deno.execPath(), "welcome.ts"],
cwd: "examples",
stdout: "piped"
});
diff --git a/std/examples/tests/xeval_test.ts b/std/examples/tests/xeval_test.ts
index db11c215c..92e9e1bfe 100644
--- a/std/examples/tests/xeval_test.ts
+++ b/std/examples/tests/xeval_test.ts
@@ -29,7 +29,7 @@ Deno.test({
name: "xevalCliReplvar",
fn: async function(): Promise<void> {
const p = run({
- args: [execPath(), xevalPath, "--replvar=abc", "console.log(abc)"],
+ cmd: [execPath(), xevalPath, "--replvar=abc", "console.log(abc)"],
stdin: "piped",
stdout: "piped",
stderr: "null"
@@ -45,7 +45,7 @@ Deno.test({
Deno.test(async function xevalCliSyntaxError(): Promise<void> {
const p = run({
- args: [execPath(), xevalPath, "("],
+ cmd: [execPath(), xevalPath, "("],
stdin: "null",
stdout: "piped",
stderr: "piped"
diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts
index 553d63001..7015516ab 100644
--- a/std/fs/empty_dir_test.ts
+++ b/std/fs/empty_dir_test.ts
@@ -221,7 +221,7 @@ for (const s of scenes) {
const p = Deno.run({
stdout: "piped",
cwd: testdataDir,
- args: args
+ cmd: args
});
assert(p.stdout);
diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts
index 4202f2734..1f296538c 100644
--- a/std/fs/exists_test.ts
+++ b/std/fs/exists_test.ts
@@ -124,7 +124,7 @@ for (const s of scenes) {
const p = Deno.run({
stdout: "piped",
cwd: testdataDir,
- args: args
+ cmd: args
});
const output = await p.output();
diff --git a/std/fs/expand_glob_test.ts b/std/fs/expand_glob_test.ts
index 6bdb77266..adc94c1e9 100644
--- a/std/fs/expand_glob_test.ts
+++ b/std/fs/expand_glob_test.ts
@@ -120,7 +120,7 @@ Deno.test(async function expandGlobIncludeDirs(): Promise<void> {
Deno.test(async function expandGlobPermError(): Promise<void> {
const exampleUrl = new URL("testdata/expand_wildcard.js", import.meta.url);
const p = run({
- args: [execPath(), exampleUrl.toString()],
+ cmd: [execPath(), exampleUrl.toString()],
stdin: "null",
stdout: "piped",
stderr: "piped"
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts
index b7cd8a7e1..d7f939dad 100644
--- a/std/http/file_server_test.ts
+++ b/std/http/file_server_test.ts
@@ -9,7 +9,7 @@ let fileServer: Deno.Process;
const port = randomPort();
async function startFileServer(): Promise<void> {
fileServer = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"run",
"--allow-read",
@@ -109,7 +109,7 @@ test(async function serveWithUnorthodoxFilename(): Promise<void> {
test(async function servePermissionDenied(): Promise<void> {
const _port = randomPort();
const deniedServer = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"run",
"--allow-net",
@@ -143,7 +143,7 @@ test(async function servePermissionDenied(): Promise<void> {
test(async function printHelp(): Promise<void> {
const helpProcess = Deno.run({
- args: [Deno.execPath(), "run", "http/file_server.ts", "--help"],
+ cmd: [Deno.execPath(), "run", "http/file_server.ts", "--help"],
stdout: "piped"
});
assert(helpProcess.stdout != null);
diff --git a/std/http/racing_server_test.ts b/std/http/racing_server_test.ts
index 2f88a4703..76b0e872d 100644
--- a/std/http/racing_server_test.ts
+++ b/std/http/racing_server_test.ts
@@ -8,7 +8,7 @@ const { connect, run, test } = Deno;
let server: Deno.Process;
async function startServer(): Promise<void> {
server = run({
- args: [
+ cmd: [
Deno.execPath(),
"run",
"-A",
diff --git a/std/http/server_test.ts b/std/http/server_test.ts
index d37111620..d9ce3ba97 100644
--- a/std/http/server_test.ts
+++ b/std/http/server_test.ts
@@ -358,7 +358,7 @@ test({
// Runs a simple server as another process
const port = randomPort();
const p = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-net",
"http/testdata/simple_server.ts",
@@ -405,7 +405,7 @@ test({
const port = randomPort();
// Runs a simple server as another process
const p = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-net",
"--allow-read",
diff --git a/std/manual.md b/std/manual.md
index 3d74259ef..fa813a929 100644
--- a/std/manual.md
+++ b/std/manual.md
@@ -366,7 +366,7 @@ Example:
```ts
// create subprocess
const p = Deno.run({
- args: ["echo", "hello"]
+ cmd: ["echo", "hello"]
});
// await its completion
@@ -393,7 +393,7 @@ you can use `"piped"` option.
const fileNames = Deno.args;
const p = Deno.run({
- args: [
+ cmd: [
"deno",
"run",
"--allow-read",