We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a428a4 commit 4248e6dCopy full SHA for 4248e6d
2 files changed
cmd/refresh/main.go
@@ -45,7 +45,14 @@ func main() {
45
}
46
47
if len(configPath) != 0 {
48
- watch, err := refresh.NewEngineFromTOML(configPath)
+ // If toml vs yaml
49
+ var err error
50
+ var watch *refresh.Engine
51
+ if strings.Contains(configPath, ".toml") {
52
+ watch, err = refresh.NewEngineFromTOML(configPath)
53
+ } else if strings.Contains(configPath, ".yaml") {
54
+ watch, err = refresh.NewEngineFromYAML(configPath)
55
+ }
56
if err != nil {
57
} else {
58
ignore := refresh.Ignore{
cmd/refresh/refresh
-3.89 MB
0 commit comments