(ctx context.Context, opts *CreateOptions)
| 102 | } |
| 103 | |
| 104 | func 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. |