Skip to content

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

pipe_stdin nullable ​

pipe_stdin?: boolean

pipe_stdout nullable ​

pipe_stdout?: boolean

pipe_stderr nullable ​

pipe_stderr?: 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 ​

  1. pinnacle.process.Child - A child with the process's standard IO, or nil if the process failed to spawn or doesn't exist.

Last updated: