Add onboarding wizard framework and startup hook

This commit is contained in:
Thales Maciel 2026-02-26 17:57:32 -03:00
parent ba9cb97720
commit 992d22a138
7 changed files with 520 additions and 10 deletions

View file

@ -111,6 +111,13 @@ def load(path: str | None) -> Config:
return cfg
def save(path: str | Path | None, cfg: Config) -> Path:
validate(cfg)
target = Path(path) if path else DEFAULT_CONFIG_PATH
_write_default_config(target, cfg)
return target
def redacted_dict(cfg: Config) -> dict[str, Any]:
return asdict(cfg)