Do not display smug.log file in `list` command (#67)

master
Ivan 3 years ago committed by GitHub
parent 500646685c
commit bfa1ad39c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,11 @@ func ListConfigs(dir string) ([]string, error) {
}
for _, file := range files {
result = append(result, strings.TrimSuffix(file.Name(), path.Ext(file.Name())))
fileExt := path.Ext(file.Name())
if fileExt != ".yml" {
continue
}
result = append(result, strings.TrimSuffix(file.Name(), fileExt))
}
return result, nil

Loading…
Cancel
Save