only keep .yaml et .yml files

This commit is contained in:
Thibault bui Koechlin 2020-06-11 17:57:53 +02:00
parent 71b3833504
commit e09db79396

View file

@ -113,7 +113,11 @@ func parser_visit(path string, f os.FileInfo, err error) error {
var fauthor string
var stage string
//we only care about files
if f == nil || f.IsDir() || strings.HasSuffix(f.Name(), "~") {
if f == nil || f.IsDir() {
return nil
}
//we only care about yaml files
if !strings.HasSuffix(f.Name(), ".yaml") && !strings.HasSuffix(f.Name(), ".yml") {
return nil
}