aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/service/_config.py
blob: 3bfb6c918d9d851bc28042385876139665192093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from ._base import AppFeaturePath, AppFeatureProvider


class ConfigManager(AppFeatureProvider):
    def __init__(self) -> None:
        super().__init__("config-manager")

    def setup(self) -> None:
        self._config_path = self.app.data_dir.add_subpath(
            "config", False, description="Configuration file path."
        )

    @property
    def config_path(self) -> AppFeaturePath:
        return self._config_path

    @property
    def config_map(self) -> dict[str, str]:
        raise NotImplementedError()