d977f67
zhenyi
refactor(dvcs): refresh dvcs/git, dvcs/gitsmart, dvcs/gitssh, dvcs/gitsync, dvcs/gitauth
d977f67
use crate::analysis::types::{CodeActivityStats, ContributorStat, LanguageStats, RefreshResult};
pub trait AnalysisOps {
fn analysis_languages(&self) -> Result<LanguageStats, crate::Error>;
fn analysis_contributors(&self) -> Result<Vec<ContributorStat>, crate::Error>;
fn analysis_code_activity_stats(
&self,
from: Option<i64>,
branch: Option<&str>,
) -> Result<CodeActivityStats, crate::Error>;
fn analysis_refresh(&self, commit_id: Option<&str>) -> Result<RefreshResult, crate::Error>;
}