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