pub(super) use super::gitignored as sync_gitignored_impl;
pub(super) use super::sync_ralph_state;
pub(super) use crate::contracts::Config;
pub(super) use crate::testsupport::git as git_test;
pub(super) use anyhow::Result;
pub(super) use std::fs;
pub(super) use std::path::{Path, PathBuf};
pub(super) use tempfile::TempDir;
pub(super) fn build_test_resolved(
repo_root: &Path,
queue_path: Option<PathBuf>,
done_path: Option<PathBuf>,
) -> crate::config::Resolved {
let queue_path = queue_path.unwrap_or_else(|| repo_root.join(".ralph/queue.json"));
let done_path = done_path.unwrap_or_else(|| repo_root.join(".ralph/done.json"));
crate::config::Resolved {
config: Config::default(),
repo_root: repo_root.to_path_buf(),
queue_path,
done_path,
id_prefix: "RQ".to_string(),
id_width: 4,
global_config_path: None,
project_config_path: None,
}
}
mod bookkeeping;
mod gitignored;
mod runtime;