Skip to content

load rules configuration file from rules directory#233

Merged
URenko merged 4 commits intoURenko:masterfrom
Sving1024:master
May 4, 2025
Merged

load rules configuration file from rules directory#233
URenko merged 4 commits intoURenko:masterfrom
Sving1024:master

Conversation

@Sving1024
Copy link
Contributor

#230
更改:

  • 不会再将 rules.toml 复制到工作目录
  • 将从工作目录下的 rules 中加载额外配置,目录不存在会自动创建。优先级高于默认的 rules.toml,但仍低于 config.toml
  • deep_merge 函数用于合并配置。该函数将递归合并字典共有的,值的类型相等且都为 list 或者 dict 的值。如果有冲突,以传入的 config_a 为准。

@URenko
Copy link
Owner

URenko commented May 2, 2025

我觉得 rules.toml 的自动复制行为还是保留的好。
在不修改它的情况下它是会随着版本自动更新的。
(主要是刚变更了 rules.toml 的行为又变更太快了)

@Sving1024
Copy link
Contributor Author

改回来了,现在会复制到工作目录,并且在 rules.toml 里加了提示。

@URenko URenko merged commit c684279 into URenko:master May 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants