mirror of
https://github.com/lune-org/lune.git
synced 2025-04-20 03:43:49 +01:00
feat(types): add stdin field to SpawnOptions
This commit is contained in:
parent
683aba4d91
commit
64266f8e8b
1 changed files with 2 additions and 0 deletions
|
@ -13,12 +13,14 @@ export type SpawnOptionsStdio = "inherit" | "default"
|
|||
* `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
|
||||
* `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 = {
|
||||
cwd: string?,
|
||||
env: { [string]: string }?,
|
||||
shell: (boolean | string)?,
|
||||
stdio: SpawnOptionsStdio?,
|
||||
stdin: string?,
|
||||
}
|
||||
|
||||
--[=[
|
||||
|
|
Loading…
Add table
Reference in a new issue