autocrate/src/serverapi/github.rs
2024-02-24 14:10:44 +01:00

32 lines
671 B
Rust

use async_trait::async_trait;
use super::ServerApi;
use crate::{
config::{packages::PackageType, Api, ApiType, Config},
error::*,
};
pub struct Github {
cfg: Api,
}
#[async_trait]
impl ServerApi for Github {
async fn init(&mut self, cfg: &Config) -> Result<()> {
todo!()
}
async fn push_release(&mut self) -> Result<()> {
todo!()
}
async fn push_release_artifact(&mut self) -> Result<()> {
todo!()
}
async fn push_pkg(&mut self, pkg_type: PackageType) -> Result<()> {
todo!()
}
}
impl Github {
pub async fn build(api: &Api) -> Result<Self> {
Ok(Self { cfg: api.clone() })
}
}