Skip to content

Commit

Permalink
feat: add name and version attributes to FeatureTemplateLibrary
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaarnio committed Sep 18, 2024
1 parent 8385837 commit c793744
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arho_feature_template/core/feature_template_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class FeatureTemplateLibrary:
def __init__(self, json_path: str | PathLike):
self.templates = []
library_dict = self.read_json(json_path)
self.name = library_dict.get(JsonKeys.NAME)
self.version = library_dict.get(JsonKeys.VERSION)
self.build_templates(library_dict)

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

0 comments on commit c793744

Please sign in to comment.