Trait pcu_lib::GitOps

source ·
pub trait GitOps {
    // Required methods
    fn branch_status(&self) -> Result<String, Error>;
    fn branch_list(&self) -> Result<String, Error>;
    fn repo_status(&self) -> Result<String, Error>;
    fn repo_files_not_staged(&self) -> Result<Vec<String>, Error>;
    fn repo_files_staged(&self) -> Result<Vec<String>, Error>;
    fn stage_files(&self, files: Vec<String>) -> Result<(), Error>;
    fn commit_staged(
        &self,
        sign: Sign,
        commit_message: &str,
        tag: Option<&str>,
    ) -> Result<(), Error>;
    fn create_tag(
        &self,
        tag: &str,
        commit_id: Oid,
        sig: &Signature<'_>,
    ) -> Result<(), Error>;
    async fn get_commitish_for_tag(
        &self,
        version: &str,
    ) -> Result<String, Error>;
    fn push_changelog(&self, version: Option<&str>) -> Result<(), Error>;
    fn commit_changelog_gpg(
        &mut self,
        tag: Option<&str>,
    ) -> Result<String, Error>;
    fn commit_changelog(&self, tag: Option<&str>) -> Result<String, Error>;
}

Required Methods§

source

fn branch_status(&self) -> Result<String, Error>

source

fn branch_list(&self) -> Result<String, Error>

source

fn repo_status(&self) -> Result<String, Error>

source

fn repo_files_not_staged(&self) -> Result<Vec<String>, Error>

source

fn repo_files_staged(&self) -> Result<Vec<String>, Error>

source

fn stage_files(&self, files: Vec<String>) -> Result<(), Error>

source

fn commit_staged( &self, sign: Sign, commit_message: &str, tag: Option<&str>, ) -> Result<(), Error>

source

fn create_tag( &self, tag: &str, commit_id: Oid, sig: &Signature<'_>, ) -> Result<(), Error>

source

async fn get_commitish_for_tag(&self, version: &str) -> Result<String, Error>

source

fn push_changelog(&self, version: Option<&str>) -> Result<(), Error>

source

fn commit_changelog_gpg(&mut self, tag: Option<&str>) -> Result<String, Error>

source

fn commit_changelog(&self, tag: Option<&str>) -> Result<String, Error>

Object Safety§

This trait is not object safe.

Implementors§