pub mod commands;
pub mod github;
pub mod merge;
pub mod wiki;
pub mod yaml;
use anyhow::Result;
use std::path::PathBuf;
use crate::cli::SyncCommands;
pub fn default_sync_dir(repo: &str) -> PathBuf {
crate::paths::sync_cache_dir(repo)
}
pub fn handle_sync(cmd: SyncCommands) -> Result<()> {
match cmd {
SyncCommands::Pull {
repo,
output,
dry_run,
} => commands::pull::run(&repo, output, dry_run),
SyncCommands::Push {
repo,
input,
dry_run,
} => commands::push::run(&repo, input, dry_run),
SyncCommands::Issues { repo, dry_run } => commands::issues::run(&repo, dry_run),
}
}