gait 0.1.3

AI-powered toolkit that enhances `Git` workflow
Documentation
use serde::{Deserialize, Serialize};

use crate::remote::common::Method;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RepositoryConfiguration {
    /// The URL of the remote repository
    pub url: String,
    /// The branch to pull from (default: main/master)
    pub branch: String,
    /// The local path where content should be placed
    pub target_path: String,
    /// Paths/filenames to include from the repository
    pub filters: Vec<String>,
    /// Specific commit to check out (optional)
    pub commit_hash: Option<String>,
    /// Method for cloning
    pub mtd: Option<Method>,
}

impl RepositoryConfiguration {
    pub fn new(
        url: String,
        branch: String,
        target_path: String,
        filters: Vec<String>,
        commit_hash: Option<String>,
        mtd: Option<Method>,
    ) -> Self {
        Self {
            url,
            branch,
            target_path,
            filters,
            commit_hash,
            mtd,
        }
    }
}