tsafe-cli 1.0.21

tsafe CLI — local secret and credential manager (replaces .env files)
Documentation
use thiserror::Error;

/// Errors produced by the 1Password Connect Server HTTP client.
#[derive(Debug, Error)]
pub enum OpConnectError {
    /// A required configuration value is missing or invalid.
    #[error("1Password Connect configuration error: {0}")]
    Config(String),

    /// Authentication failed — token is invalid or revoked (HTTP 401).
    #[error("1Password Connect authentication failed: {0}")]
    Auth(String),

    /// Network or ureq transport error (connection refused, timeout, TLS).
    #[error("1Password Connect transport error: {0}")]
    Transport(String),

    /// Unexpected HTTP status returned by the Connect Server.
    #[error("1Password Connect HTTP {status}: {body}")]
    Http { status: u16, body: String },

    /// No vault matched the requested name, or the name is ambiguous.
    #[error("1Password vault not found: {0}")]
    VaultNotFound(String),

    /// No item in the vault matched the requested title.
    #[error("1Password item not found: {0}")]
    ItemNotFound(String),
}