bgit 0.4.2

User-friendly Git wrapper for beginners, automating essential tasks like adding, committing, and pushing changes. It includes smart rules to avoid common pitfalls, such as accidentally adding sensitive files or directories and has exclusive support for portable hooks!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use log::debug;

use crate::bgit_error::{BGitError, BGitErrorWorkflowType, NO_EVENT, NO_RULE, NO_STEP};

/// SSH agent functionality is not supported on this platform
pub fn ensure_agent_ready() -> Result<(), Box<BGitError>> {
    debug!("SSH agent not supported on this platform");
    Err(Box::new(BGitError::new(
        "SSH agent unsupported",
        "SSH agent not supported on this platform",
        BGitErrorWorkflowType::Authentication,
        NO_STEP,
        NO_EVENT,
        NO_RULE,
    )))
}