MCPcopy Create free account
hub / github.com/algolia/cli / runCreateCmd

Function runCreateCmd

pkg/cmd/application/create/create.go:104–115  ·  view source on GitHub ↗
(ctx context.Context, opts *CreateOptions)

Source from the content-addressed store, hash-verified

102}
103
104func runCreateCmd(ctx context.Context, opts *CreateOptions) error {
105 if opts.DryRun {
106 return printDryRunSummary(opts)
107 }
108
109 tracker := telemetry.NewFlowTracker()
110 telemetry.TrackEvent(ctx, telemetry.ApplicationCreateStarted())
111
112 result, err := createApplication(ctx, opts, tracker)
113 trackCreateOutcome(ctx, tracker, result, err)
114 return err
115}
116
117// trackCreateOutcome reports how the creation flow ended: completed, aborted
118// (with the reason why), or failed.

Calls 6

NewFlowTrackerFunction · 0.92
TrackEventFunction · 0.92
ApplicationCreateStartedFunction · 0.92
printDryRunSummaryFunction · 0.85
createApplicationFunction · 0.85
trackCreateOutcomeFunction · 0.85