(value: string)
| 131 | } |
| 132 | |
| 133 | function getLengthBucket(value: string) { |
| 134 | const length = value.trim().length |
| 135 | if (length === 0) { |
| 136 | return 'empty' |
| 137 | } |
| 138 | |
| 139 | if (length <= 10) { |
| 140 | return '1_10' |
| 141 | } |
| 142 | |
| 143 | if (length <= 25) { |
| 144 | return '11_25' |
| 145 | } |
| 146 | |
| 147 | if (length <= 50) { |
| 148 | return '26_50' |
| 149 | } |
| 150 | |
| 151 | return '51_plus' |
| 152 | } |
| 153 | |
| 154 | function getCreateCommandVariant(options: CliOptions) { |
| 155 | if (options.listAddOns) { |