MCPcopy Create free account
hub / github.com/auth0/auth0-cli / applyDetectionToInputs

Function applyDetectionToInputs

internal/cli/quickstarts.go:1360–1370  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1360func 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

Calls

no outgoing calls