addWorkflows handles workflow addition using pre-fetched content
(ctx context.Context, workflows []*ResolvedWorkflow, opts AddOptions)
| 271 | |
| 272 | // addWorkflows handles workflow addition using pre-fetched content |
| 273 | func addWorkflows(ctx context.Context, workflows []*ResolvedWorkflow, opts AddOptions) error { |
| 274 | addLog.Printf("Adding %d workflow(s) to repository", len(workflows)) |
| 275 | // Create file tracker for all operations |
| 276 | tracker := NewFileTracker() |
| 277 | return addWorkflowsWithTracking(ctx, workflows, tracker, opts) |
| 278 | } |
| 279 | |
| 280 | // addWorkflows handles workflow addition using pre-fetched content |
| 281 | func addWorkflowsWithTracking(ctx context.Context, workflows []*ResolvedWorkflow, tracker *FileTracker, opts AddOptions) error { |