parseMissingConfigKeys extracts config key names from Pulumi stderr output.
(stderr string)
| 1261 | |
| 1262 | // parseMissingConfigKeys extracts config key names from Pulumi stderr output. |
| 1263 | func 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 |
nothing calls this directly
no outgoing calls
no test coverage detected