Class pinnacle.process.Command
​
A command representing a to-be-spawned process.
Fields ​
cmd ​
cmd
: string | string[]
shell_cmd nullable ​
shell_cmd?
: string[]
envs nullable ​
envs?
: table<string, string>
unique nullable ​
unique?
: boolean
once nullable ​
once?
: boolean
Functions ​
method spawn ​
function pinnacle.process.Command:spawn()
-> pinnacle.process.Child?
Spawns this process, returning a Child
that contains the process's standard IO if successful.
Returns ​
pinnacle.process.Child
- A child with the process's standard IO, ornil
if the process failed to spawn or doesn't exist.