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

Function getCreateCommandVariant

packages/cli/src/cli.ts:154–168  ·  view source on GitHub ↗
(options: CliOptions)

Source from the content-addressed store, hash-verified

152}
153
154function getCreateCommandVariant(options: CliOptions) {
155 if (options.listAddOns) {
156 return 'list_add_ons'
157 }
158
159 if (options.addonDetails) {
160 return 'addon_details'
161 }
162
163 if (options.devWatch) {
164 return 'dev_watch'
165 }
166
167 return 'scaffold'
168}
169
170function getCreateTelemetryProperties(projectName: string, options: CliOptions) {
171 const addOnIds = Array.isArray(options.addOns)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected