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

Function parseMissingConfigKeys

cmd/pulumi.go:1263–1275  ·  view source on GitHub ↗

parseMissingConfigKeys extracts config key names from Pulumi stderr output.

(stderr string)

Source from the content-addressed store, hash-verified

1261
1262// parseMissingConfigKeys extracts config key names from Pulumi stderr output.
1263func parseMissingConfigKeys(stderr string) []string {
1264 matches := reMissingConfig.FindAllStringSubmatch(stderr, -1)
1265 seen := map[string]bool{}
1266 var keys []string
1267 for _, m := range matches {
1268 key := m[1]
1269 if !seen[key] {
1270 seen[key] = true
1271 keys = append(keys, key)
1272 }
1273 }
1274 return keys
1275}
1276
1277// ---------------------------------------------------------------------------
1278// Static source scanning for required config keys

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected