refactor: Big internal refactor
This commit is contained in:
+6
-2
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user