Skip to main content

GitEnvironment

Trait GitEnvironment 

Source
pub trait GitEnvironment: Send + Sync {
    // Required methods
    fn configure_git_ssh_command(
        &self,
        key_path: &str,
    ) -> Result<(), GitEnvError>;
    fn disable_git_terminal_prompt(&self) -> Result<(), GitEnvError>;
}
Expand description

Trait for git-specific environment configuration.

Allows handlers to configure git authentication without directly calling std::env::set_var, keeping the imperative mutation in the runtime boundary.

Required Methods§

Source

fn configure_git_ssh_command(&self, key_path: &str) -> Result<(), GitEnvError>

Configure GIT_SSH_COMMAND to use a specific SSH key.

Source

fn disable_git_terminal_prompt(&self) -> Result<(), GitEnvError>

Disable git terminal prompt (GIT_TERMINAL_PROMPT=0).

Implementors§