(status: 'added' | 'removed' | 'modified', c: ChalkInstance)
| 405 | } |
| 406 | |
| 407 | function getStatusColor(status: 'added' | 'removed' | 'modified', c: ChalkInstance): ChalkInstance { |
| 408 | if (status === 'added') return c.green |
| 409 | if (status === 'removed') return c.red |
| 410 | return c.yellow |
| 411 | } |