cstats-hook 0.1.1

Hook generation for cstats shell integration
Documentation
//! Error types for cstats-hook

/// Result type alias for hook operations
pub type Result<T> = std::result::Result<T, Error>;

/// Error types for hook generation
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// Unsupported shell type
    #[error("Unsupported shell type: {0}")]
    UnsupportedShell(String),

    /// Template processing error
    #[error("Template error: {0}")]
    Template(String),

    /// I/O error
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    /// JSON serialization/deserialization error
    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),

    /// Configuration error
    #[error("Configuration error: {0}")]
    Config(String),
}