diff --git a/cli/helper.go b/cli/helper.go index 58cec89..45e3ea7 100644 --- a/cli/helper.go +++ b/cli/helper.go @@ -6,6 +6,7 @@ import ( "github.com/mattes/fugu/file" "io/ioutil" "os" + "path" "sort" ) @@ -65,7 +66,10 @@ func BuildRunArgs(conf *[]config.Value) []string { func FindFugufile(filepath string, searchFilePaths []string) (fugufilePath string, viaFugufilePath bool) { // does the file exist? if _, err := os.Stat(filepath); err == nil { - return filepath, false + ext := path.Ext(filepath) + if ext == "yml" || ext == "yaml" { + return filepath, false + } } // filepath does not exist. diff --git a/version/version.go b/version/version.go index ec1cdb3..8d43885 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,3 @@ package version -const Version = "0.1.1" +const Version = "0.1.2"