Skip to main content

GitOps

Trait GitOps 

Source
pub trait GitOps {
    // Required methods
    fn init(&self) -> Result<()>;
    fn add(&self, path: &Path) -> Result<()>;
    fn commit(&self, message: &str) -> Result<()>;
    fn pull_rebase(&self) -> Result<()>;
    fn push(&self) -> Result<()>;
    fn status(&self) -> Result<String>;
    fn show(&self, revision: &str) -> Result<String>;
    fn rebase_continue(&self) -> Result<()>;
    fn has_remote(&self) -> Result<bool>;
    fn config(&self, key: &str, value: &str) -> Result<()>;
}

Required Methods§

Source

fn init(&self) -> Result<()>

Source

fn add(&self, path: &Path) -> Result<()>

Source

fn commit(&self, message: &str) -> Result<()>

Source

fn pull_rebase(&self) -> Result<()>

Source

fn push(&self) -> Result<()>

Source

fn status(&self) -> Result<String>

Source

fn show(&self, revision: &str) -> Result<String>

Source

fn rebase_continue(&self) -> Result<()>

Source

fn has_remote(&self) -> Result<bool>

Source

fn config(&self, key: &str, value: &str) -> Result<()>

Implementors§