| 16 | export type CommandIdentifier = string | number; |
| 17 | |
| 18 | export interface CommandInfo { |
| 19 | /** |
| 20 | * Command's name. |
| 21 | */ |
| 22 | name: string; |
| 23 | |
| 24 | /** |
| 25 | * Which command line the command has. |
| 26 | */ |
| 27 | command: string; |
| 28 | |
| 29 | /** |
| 30 | * Which environment variables should the spawned process have. |
| 31 | */ |
| 32 | env?: Record<string, unknown>; |
| 33 | |
| 34 | /** |
| 35 | * The current working directory of the process when spawned. |
| 36 | */ |
| 37 | cwd?: string; |
| 38 | |
| 39 | /** |
| 40 | * Color to use on prefix of the command. |
| 41 | */ |
| 42 | prefixColor?: string; |
| 43 | |
| 44 | /** |
| 45 | * Whether sending of messages to/from this command (also known as "inter-process communication") |
| 46 | * should be enabled, and using which file descriptor number. |
| 47 | * |
| 48 | * If set, must be > 2. |
| 49 | */ |
| 50 | ipc?: number; |
| 51 | |
| 52 | /** |
| 53 | * Output command in raw format. |
| 54 | */ |
| 55 | raw?: boolean; |
| 56 | } |
| 57 | |
| 58 | export interface CloseEvent { |
| 59 | command: CommandInfo; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…