( exitOnCtrlC: boolean = false, )
| 66 | * @param exitOnCtrlC - Whether to exit on Ctrl+C (usually false for dialogs) |
| 67 | */ |
| 68 | export function getBaseRenderOptions( |
| 69 | exitOnCtrlC: boolean = false, |
| 70 | ): RenderOptions { |
| 71 | const stdin = getStdinOverride() |
| 72 | const options: RenderOptions = { exitOnCtrlC } |
| 73 | if (stdin) { |
| 74 | options.stdin = stdin |
| 75 | } |
| 76 | return options |
| 77 | } |
| 78 |
no test coverage detected