add logging

This commit is contained in:
2022-11-21 14:09:03 +01:00
parent dce155979e
commit af875e4688
14 changed files with 244 additions and 23 deletions

View File

@@ -9,6 +9,7 @@ edition = "2021"
async-trait = { workspace = true }
eyre = { workspace = true }
tokio = { workspace = true }
rand = "0.8.5"
hex = "0.4.3"
git2 = "0.15.0"

View File

@@ -1,9 +1,12 @@
use std::sync::Arc;
use async_trait::async_trait;
pub mod github;
#[async_trait::async_trait]
#[async_trait]
pub trait GitProvider {
async fn clone_from_url(&self, url: String) -> eyre::Result<()>;
}
pub type DynGitProvider = Arc<dyn GitProvider + Send + Sync>;