MCPcopy Create free account
hub / github.com/TanStack/cli / getLengthBucket

Function getLengthBucket

packages/cli/src/cli.ts:133–152  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

131}
132
133function 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
154function getCreateCommandVariant(options: CliOptions) {
155 if (options.listAddOns) {

Callers 1

cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected