cuddle_please_misc/
local_git_client.rs1use crate::RemoteGitEngine;
2
3pub struct LocalGitClient {}
4
5impl LocalGitClient {
6 pub fn new() -> Self {
7 Self {}
8 }
9}
10
11impl RemoteGitEngine for LocalGitClient {
12 fn connect(&self, _owner: &str, _repo: &str) -> anyhow::Result<()> {
13 todo!()
14 }
15
16 fn get_tags(&self, _owner: &str, _repo: &str) -> anyhow::Result<Vec<crate::gitea_client::Tag>> {
17 todo!()
18 }
19
20 fn get_commits_since(
21 &self,
22 _owner: &str,
23 _repo: &str,
24 _since_sha: Option<&str>,
25 _branch: &str,
26 ) -> anyhow::Result<Vec<crate::gitea_client::Commit>> {
27 todo!()
28 }
29
30 fn get_pull_request(&self, _owner: &str, _repo: &str) -> anyhow::Result<Option<usize>> {
31 todo!()
32 }
33
34 fn create_pull_request(
35 &self,
36 _owner: &str,
37 _repo: &str,
38 _version: &str,
39 _body: &str,
40 _base: &str,
41 ) -> anyhow::Result<usize> {
42 todo!()
43 }
44
45 fn update_pull_request(
46 &self,
47 _owner: &str,
48 _repo: &str,
49 _version: &str,
50 _body: &str,
51 _index: usize,
52 ) -> anyhow::Result<usize> {
53 todo!()
54 }
55
56 fn create_release(
57 &self,
58 _owner: &str,
59 _repo: &str,
60 _version: &str,
61 _body: &str,
62 _prerelease: bool,
63 ) -> anyhow::Result<crate::gitea_client::Release> {
64 todo!()
65 }
66}