in scripts/check_importer_supports_engine/main.go [44:70]
func run() error {
examples, err := filepath.Glob(filepath.Join(examplesDir, "*.hcl"))
if err != nil {
return fmt.Errorf("glob .hcl files under %v: %v", examplesDir, err)
}
if len(examples) == 0 {
return fmt.Errorf("found no examples")
}
unsupported := make(map[string]bool)
for _, ex := range examples {
if err := resourcesFromConfig(ex, unsupported); err != nil {
return fmt.Errorf("finding resources from %v: %v", ex, err)
}
}
resources := make([]string, 0, len(unsupported))
for r := range unsupported {
resources = append(resources, r)
}
sort.Strings(resources)
fmt.Println(strings.Join(resources, "\n"))
return nil
}