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

Function validateNonInteractiveRequirements

internal/cli/quickstarts.go:998–1011  ·  view source on GitHub ↗

validateNonInteractiveRequirements enforces flag requirements that apply only when prompts are disabled.

(inputs SetupInputs, canPromptFlag bool)

Source from the content-addressed store, hash-verified

996
997// validateNonInteractiveRequirements enforces flag requirements that apply only when prompts are disabled.
998func validateNonInteractiveRequirements(inputs SetupInputs, canPromptFlag bool) error {
999 if canPromptFlag {
1000 return nil
1001 }
1002 if inputs.App && inputs.Type != "" && inputs.Type != "m2m" && inputs.Framework == "" {
1003 return fmt.Errorf(
1004 "--framework is required in non-interactive mode when --type is %s: "+
1005 "use --framework and optionally --build-tool flags "+
1006 "(e.g. --framework react --build-tool vite)",
1007 inputs.Type,
1008 )
1009 }
1010 return nil
1011}
1012
1013// printClientDetails prints post-creation guidance for the new Auth0 application.
1014// The config-file outcome is reported by WriteQuickstartConfig itself (success

Callers 1

runSetupQuickstartFunction · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected