From eaf641e328264bd836a2dd1083b63f10deb84ec3 Mon Sep 17 00:00:00 2001 From: Tunahan Uysal <36801721+Tunahan-Uysal@users.noreply.github.com> Date: Mon, 28 Apr 2025 01:52:52 +0300 Subject: [PATCH] process.spawn is now process.exec as of 0.9.0 --- pages/api-reference/process.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/api-reference/process.md b/pages/api-reference/process.md index bed57bc..70f5b2f 100644 --- a/pages/api-reference/process.md +++ b/pages/api-reference/process.md @@ -23,7 +23,7 @@ end print("Running " .. process.os .. " on " .. process.arch .. "!") -- Spawning a child process -local result = process.spawn("program", { +local result = process.exec("program", { "cli argument", "other cli argument" }) @@ -137,7 +137,7 @@ process. Refer to the documentation for `SpawnOptions` for specific option keys ### SpawnOptions -A dictionary of options for `process.spawn`, with the following available values: +A dictionary of options for `process.exec`, with the following available values: - `cwd` - The current working directory for the process - `env` - Extra environment variables to give to the process @@ -151,7 +151,7 @@ A dictionary of options for `process.spawn`, with the following available values ### SpawnResult -Result type for child processes in `process.spawn`. +Result type for child processes in `process.exec`. This is a dictionary containing the following values: