MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / isNonPackageMode

Function isNonPackageMode

cmd/pulumi.go:1081–1087  ·  view source on GitHub ↗
(pyprojectPath string)

Source from the content-addressed store, hash-verified

1079var reNonPackageMode = regexp.MustCompile(`(?m)^\s*package-mode\s*=\s*false`)
1080
1081func isNonPackageMode(pyprojectPath string) bool {
1082 data, err := os.ReadFile(pyprojectPath)
1083 if err != nil {
1084 return false
1085 }
1086 return reNonPackageMode.Match(data)
1087}
1088
1089// parsePyprojectDeps extracts dependency specifiers from pyproject.toml without
1090// a full TOML parser. It handles two common layouts:

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected