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

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