(status: string)
| 165 | } |
| 166 | |
| 167 | function getSubscriptionStatusColor(status: string): string { |
| 168 | switch (status) { |
| 169 | case 'active': |
| 170 | return chalk.green(status); |
| 171 | case 'trialing': |
| 172 | return chalk.blue(status); |
| 173 | case 'canceled': |
| 174 | return chalk.red(status); |
| 175 | case 'past_due': |
| 176 | return chalk.yellow(status); |
| 177 | default: |
| 178 | return chalk.gray(status); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | function getRoleBadge(role: string): string { |
| 183 | switch (role) { |
no outgoing calls
no test coverage detected