Skip to content

Commit 4210a1a

Browse files
committed
configuration(feat): Expose read-only properties and fix mkdir() references
1 parent 5626471 commit 4210a1a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

jsonpycraft/manager/configuration.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,22 @@ def __init__(
4141

4242
self._indent = indent
4343

44+
@property
45+
def keys(self) -> list[str]:
46+
return self._map_template.keys
47+
48+
@property
49+
def data(self) -> JSONMap:
50+
return self._map_template.data
51+
4452
def mkdir(self) -> None:
4553
"""
4654
Create the directory for the JSON file.
4755
4856
Raises:
4957
JSONFileErrorHandler: If there is an error creating the directory for the JSON file.
5058
"""
51-
return self._map_template.make_directory()
59+
return self._map_template.mkdir()
5260

5361
def load(self) -> None:
5462
"""

0 commit comments

Comments
 (0)