(status: 'added' | 'removed' | 'modified')
| 399 | } |
| 400 | |
| 401 | function getStatusIcon(status: 'added' | 'removed' | 'modified'): string { |
| 402 | if (status === 'added') return '+' |
| 403 | if (status === 'removed') return '-' |
| 404 | return '~' |
| 405 | } |
| 406 | |
| 407 | function getStatusColor(status: 'added' | 'removed' | 'modified', c: ChalkInstance): ChalkInstance { |
| 408 | if (status === 'added') return c.green |