Initial upload: GitPulse project files
This commit is contained in:
17
gitpulse/config.py
Normal file
17
gitpulse/config.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""Configuration management for GitPulse."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@dataclass
|
||||
class Config:
|
||||
"""Configuration for GitPulse."""
|
||||
|
||||
default_path: str = "."
|
||||
cache_enabled: bool = True
|
||||
config_path: Path = None
|
||||
|
||||
def __post_init__(self) -> None:
|
||||
if self.config_path is None:
|
||||
self.config_path = Path.home() / ".config" / "gitpulse" / "config.toml"
|
||||
Reference in New Issue
Block a user