(message = '', opts?: CommonOptions)
| 22 | * ``` |
| 23 | */ |
| 24 | export const cancel = (message = '', opts?: CommonOptions) => { |
| 25 | const output: Writable = opts?.output ?? process.stdout; |
| 26 | const hasGuide = opts?.withGuide ?? settings.withGuide; |
| 27 | const prefix = hasGuide ? `${styleText('gray', S_BAR_END)} ` : ''; |
| 28 | output.write(`${prefix}${styleText('red', message)}\n\n`); |
| 29 | }; |
| 30 | |
| 31 | /** |
| 32 | * The `intro` function defines the beginning of an interaction. |
nothing calls this directly
no outgoing calls
no test coverage detected