Skip to content

Commit c793744

Browse files
committed
feat: add name and version attributes to FeatureTemplateLibrary
1 parent 8385837 commit c793744

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arho_feature_template/core/feature_template_library.py

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class FeatureTemplateLibrary:
1919
def __init__(self, json_path: str | PathLike):
2020
self.templates = []
2121
library_dict = self.read_json(json_path)
22+
self.name = library_dict.get(JsonKeys.NAME)
23+
self.version = library_dict.get(JsonKeys.VERSION)
2224
self.build_templates(library_dict)
2325

2426
def read_json(self, json_path: str | PathLike) -> dict:

0 commit comments

Comments
 (0)