applyDetectionToInputs copies fields from a DetectionResult into inputs, skipping any field that was already explicitly set. The framework field is NOT copied here because the ambiguous-candidate path requires a prompt before it can be resolved.
(inputs *SetupInputs, d DetectionResult)
| 1358 | // any field that was already explicitly set. The framework field is NOT copied here |
| 1359 | // because the ambiguous-candidate path requires a prompt before it can be resolved. |
| 1360 | func applyDetectionToInputs(inputs *SetupInputs, d DetectionResult) { |
| 1361 | if inputs.Type == "" { |
| 1362 | inputs.Type = d.Type |
| 1363 | } |
| 1364 | if inputs.BuildTool == "" || inputs.BuildTool == "none" { |
| 1365 | inputs.BuildTool = d.BuildTool |
| 1366 | } |
| 1367 | if inputs.BundleID == "" && d.BundleID != "" { |
| 1368 | inputs.BundleID = d.BundleID |
| 1369 | } |
| 1370 | } |
| 1371 | |
| 1372 | // frameworkDisplayName returns a human-friendly display name for a framework key. |
| 1373 | // It handles cases where the internal key (e.g. "vanilla-python") differs from the |
no outgoing calls