( s: string | undefined, color: Constants.ANSI_COLORS, reset_color: Constants.ANSI_COLORS = Constants.ANSI_COLORS.RESET_COLOR, )
| 1 | import * as Constants from '../core/constants'; |
| 2 | |
| 3 | export function wrapInColor( |
| 4 | s: string | undefined, |
| 5 | color: Constants.ANSI_COLORS, |
| 6 | reset_color: Constants.ANSI_COLORS = Constants.ANSI_COLORS.RESET_COLOR, |
| 7 | ): string { |
| 8 | return `${color}${s ?? ''}${reset_color}`; |
| 9 | } |
no outgoing calls
no test coverage detected