mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
16 lines
377 B
Rust
16 lines
377 B
Rust
use helpers::git::CloneArgs;
|
|
use types::{Log, Server};
|
|
|
|
use crate::PeripheryClient;
|
|
|
|
impl PeripheryClient {
|
|
pub async fn clone(
|
|
&self,
|
|
server: &Server,
|
|
clone_args: impl Into<CloneArgs>,
|
|
) -> anyhow::Result<Vec<Log>> {
|
|
let clone_args: CloneArgs = clone_args.into();
|
|
self.post_json(server, "/git/clone", &clone_args).await
|
|
}
|
|
}
|