use std::path::Path;
use crate::constants::paths::{
SCAN_OVERRIDE_PATH, TASK_BUILDER_OVERRIDE_PATH, WORKER_OVERRIDE_PATH,
};
pub(super) fn worker_template_source(repo_root: &Path) -> &'static str {
if repo_root.join(WORKER_OVERRIDE_PATH).exists() {
WORKER_OVERRIDE_PATH
} else {
"(embedded default)"
}
}
pub(super) fn scan_template_source(repo_root: &Path) -> &'static str {
if repo_root.join(SCAN_OVERRIDE_PATH).exists() {
SCAN_OVERRIDE_PATH
} else {
"(embedded default)"
}
}
pub(super) fn task_builder_template_source(repo_root: &Path) -> &'static str {
if repo_root.join(TASK_BUILDER_OVERRIDE_PATH).exists() {
TASK_BUILDER_OVERRIDE_PATH
} else {
"(embedded default)"
}
}