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

Method finishStep

packages/cli/src/telemetry.ts:227–243  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

225 }
226
227 finishStep(id: string) {
228 if (!this.enabled) {
229 return
230 }
231
232 const step = this.pendingSteps.get(id)
233 if (!step) {
234 return
235 }
236
237 this.pendingSteps.delete(id)
238 this.completedSteps.push({
239 durationMs: Math.max(Date.now() - step.startedAt, 0),
240 id,
241 type: step.type,
242 })
243 }
244
245 async captureCommandStarted(command: string, properties: TelemetryProperties) {
246 this.mergeProperties(properties)

Callers 15

createUIEnvironmentFunction · 0.80
telemetry.test.tsFile · 0.80
writeFilesFunction · 0.80
runSpecialStepsFunction · 0.80
installShadcnComponentsFunction · 0.80
setupIntentFunction · 0.80
writeFilesFunction · 0.80
runNewCommandsFunction · 0.80
addToAppFunction · 0.80
writeFilesFunction · 0.80

Calls 3

nowMethod · 0.80
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected