MCPcopy Create free account
hub / github.com/github/gh-aw / addWorkflows

Function addWorkflows

pkg/cli/add_command.go:273–278  ·  view source on GitHub ↗

addWorkflows handles workflow addition using pre-fetched content

(ctx context.Context, workflows []*ResolvedWorkflow, opts AddOptions)

Source from the content-addressed store, hash-verified

271
272// addWorkflows handles workflow addition using pre-fetched content
273func 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
281func addWorkflowsWithTracking(ctx context.Context, workflows []*ResolvedWorkflow, tracker *FileTracker, opts AddOptions) error {

Callers 2

AddResolvedWorkflowsFunction · 0.85

Calls 3

NewFileTrackerFunction · 0.85
addWorkflowsWithTrackingFunction · 0.85
PrintfMethod · 0.45

Tested by 1