feat(types): add stdin field to SpawnOptions

This commit is contained in:
Erica Marigold 2023-09-18 23:27:48 +05:30
parent 683aba4d91
commit 64266f8e8b

View file

@ -13,12 +13,14 @@ export type SpawnOptionsStdio = "inherit" | "default"
* `env` - Extra environment variables to give to the process * `env` - Extra environment variables to give to the process
* `shell` - Whether to run in a shell or not - set to `true` to run using the default shell, or a string to run using a specific shell * `shell` - Whether to run in a shell or not - set to `true` to run using the default shell, or a string to run using a specific shell
* `stdio` - How to treat output and error streams from the child process - set to "inherit" to pass output and error streams to the current process * `stdio` - How to treat output and error streams from the child process - set to "inherit" to pass output and error streams to the current process
* `stdin` - Optional standard input to pass to spawned child process
]=] ]=]
export type SpawnOptions = { export type SpawnOptions = {
cwd: string?, cwd: string?,
env: { [string]: string }?, env: { [string]: string }?,
shell: (boolean | string)?, shell: (boolean | string)?,
stdio: SpawnOptionsStdio?, stdio: SpawnOptionsStdio?,
stdin: string?,
} }
--[=[ --[=[