(title: string, status: TodoStatus, colors: ColorPalette)
| 200 | } |
| 201 | |
| 202 | function styleTitle(title: string, status: TodoStatus, colors: ColorPalette): string { |
| 203 | switch (status) { |
| 204 | case 'in_progress': |
| 205 | return chalk.hex(colors.text).bold(title); |
| 206 | case 'done': |
| 207 | return chalk.hex(colors.textDim).strikethrough(title); |
| 208 | case 'pending': |
| 209 | return chalk.hex(colors.text)(title); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | const STATUS_LABELS: readonly { status: TodoStatus; label: string }[] = [ |
| 214 | { status: 'done', label: 'done' }, |
no test coverage detected