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

Function isVaporSwiftPackage

internal/cli/quickstart_detect.go:660–666  ·  view source on GitHub ↗

isVaporSwiftPackage returns true if Package.swift in dir contains a Vapor dependency. Vapor's Package.swift references "vapor/vapor.git" or the package URL contains "vapor/vapor".

(dir string)

Source from the content-addressed store, hash-verified

658// isVaporSwiftPackage returns true if Package.swift in dir contains a Vapor dependency.
659// Vapor's Package.swift references "vapor/vapor.git" or the package URL contains "vapor/vapor".
660func isVaporSwiftPackage(dir string) bool {
661 data, ok := readFileContent(dir, "Package.swift")
662 if !ok {
663 return false
664 }
665 return strings.Contains(data, "vapor/vapor")
666}
667
668// hasXcodeprojDir returns true if any directory entry in dir ends with ".xcodeproj".
669// An .xcodeproj bundle is the primary signal file for Xcode-based iOS/macOS Swift projects.

Callers 1

DetectProjectFunction · 0.85

Calls 1

readFileContentFunction · 0.85

Tested by

no test coverage detected