process.spawn is now process.exec as of 0.9.0

This commit is contained in:
Tunahan Uysal 2025-04-28 01:52:52 +03:00 committed by GitHub
parent 0a1e5ae87d
commit eaf641e328
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ end
print("Running " .. process.os .. " on " .. process.arch .. "!") print("Running " .. process.os .. " on " .. process.arch .. "!")
-- Spawning a child process -- Spawning a child process
local result = process.spawn("program", { local result = process.exec("program", {
"cli argument", "cli argument",
"other cli argument" "other cli argument"
}) })
@ -137,7 +137,7 @@ process. Refer to the documentation for `SpawnOptions` for specific option keys
### SpawnOptions ### 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 - `cwd` - The current working directory for the process
- `env` - Extra environment variables to give to 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 ### 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: This is a dictionary containing the following values: