Skip to content

[FEAT]: combine code configures dict w/ config.toml configures table #5

@HsiangNianian

Description

@HsiangNianian

Step 1.

Create config.toml:

[core]
rule_dirs = ["rules"]

Step 2.

Create main.py:

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions