feat(builder): use a new content processor

This commit is contained in:
Haoyu Xu
2021-08-08 15:01:04 -04:00
parent db583f53fc
commit 896060d740
5 changed files with 151 additions and 29 deletions

View File

@@ -25,6 +25,7 @@ class Config:
preview=str,
use_skel=bool,
title=str,
config=dict,
)
)
self.__read_config()
@@ -48,8 +49,8 @@ class Config:
for operator_name, operator_content in self.config[key].items():
self.__config_check(operator_name, operator_content, self.valid_keys[key])
with open(self.config_path, 'w') as f:
yaml.safe_dump(self.config, f, allow_unicode=True)
# with open(self.config_path, 'w') as f:
# yaml.safe_dump(self.config, f, allow_unicode=True)
def __config_check(self, block_name: str, contents: dict, required_keys: dict):
checklist = [key for key in required_keys]