collectWorkflowInputs collects input values from the user
(ctx context.Context, wf *WorkflowOption)
| 259 | |
| 260 | // collectWorkflowInputs collects input values from the user |
| 261 | func 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 |
| 271 | func collectInputsWithMap(ctx context.Context, inputs map[string]*workflow.InputDefinition) ([]string, error) { |
no test coverage detected