refactor: Big internal refactor

This commit is contained in:
2026-04-01 06:18:57 +02:00
parent a7578a6b16
commit 7a83a8a4be
11 changed files with 240 additions and 201 deletions
+6 -2
View File
@@ -17,10 +17,14 @@ pub fn set_repo_path(path: impl Into<PathBuf>) {
.expect("Repo path already initialized");
}
fn get_repo_path() -> &'static Path {
pub fn get_repo_path() -> &'static Path {
REPO_PATH.get().expect("Repo path not initialized")
}
fn get_talos_config_path() -> PathBuf {
pub fn get_talos_path() -> PathBuf {
get_repo_path().join("talos")
}
pub fn get_configs_path() -> PathBuf {
get_repo_path().join("configs")
}