Add inline rule-set & Add reload for local rule-set

This commit is contained in:
世界
2024-09-18 07:30:01 +08:00
parent 7e76f22180
commit 19346d5fef
14 changed files with 311 additions and 280 deletions
+4 -1
View File
@@ -56,7 +56,10 @@ func compileRuleSet(sourcePath string) error {
if err != nil {
return err
}
ruleSet := plainRuleSet.Upgrade()
ruleSet, err := plainRuleSet.Upgrade()
if err != nil {
return err
}
var outputPath string
if flagRuleSetCompileOutput == flagRuleSetCompileDefaultOutput {
if strings.HasSuffix(sourcePath, ".json") {