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

Function collectWorkflowInputs

pkg/cli/run_interactive.go:261–268  ·  view source on GitHub ↗

collectWorkflowInputs collects input values from the user

(ctx context.Context, wf *WorkflowOption)

Source from the content-addressed store, hash-verified

259
260// collectWorkflowInputs collects input values from the user
261func collectWorkflowInputs(ctx context.Context, wf *WorkflowOption) ([]string, error) {
262 if len(wf.Inputs) == 0 {
263 return nil, nil
264 }
265
266 runInteractiveLog.Printf("Collecting %d workflow inputs", len(wf.Inputs))
267 return collectInputsWithMap(ctx, wf.Inputs)
268}
269
270// collectInputsWithMap collects inputs using a map to properly capture values
271func collectInputsWithMap(ctx context.Context, inputs map[string]*workflow.InputDefinition) ([]string, error) {

Callers 2

RunWorkflowInteractivelyFunction · 0.85

Calls 2

collectInputsWithMapFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected