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

Function parsePEP621Deps

cmd/pulumi.go:1116–1129  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

1114var reQuotedDep = regexp.MustCompile(`["']([^"']+)["']`)
1115
1116func parsePEP621Deps(content string) []string {
1117 m := rePEP621Section.FindStringSubmatch(content)
1118 if m == nil {
1119 return nil
1120 }
1121 var deps []string
1122 for _, dm := range reQuotedDep.FindAllStringSubmatch(m[1], -1) {
1123 dep := strings.TrimSpace(dm[1])
1124 if dep != "" {
1125 deps = append(deps, dep)
1126 }
1127 }
1128 return deps
1129}
1130
1131// parsePoetryDeps extracts deps from [tool.poetry.dependencies] key = "version" pairs.
1132// It reads lines between the section header and the next [section] header.

Callers 1

parsePyprojectDepsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected