HydroRoll-Team / HydroRoll-Team/HydroRollCore
[FEAT]: combine code configures dict w/ `config.toml` configures table
Open
enhancement
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### Step 1.
Create `config.toml`:
```toml
[core]
rule_dirs = ["rules"]
```
### Step 2.
Create `main.py`:
```py3
from hrc.core import Core
core = Core(hot_reload=True, config_dict={'core': {'rules':['plugins.thePool']}})
if __name__ == '__main__':
core.run()
```
### step 3.
Run code by using `pdm run main.py`.
This will combine both of the config dict and config table.
Contributor guide
Assessment
This issue has not been assessed yet.