init, scaffhold + fuse

This commit is contained in:
nvrl committed 2026-06-28 17:15:10 +02:00
commit e9c8ddd18b
12 files changed
+5580

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
//! Crate-wide error type.
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("proton api: {0}")]
Proton(#[from] proton_sdk::ProtonError),
#[error("keyring: {0}")]
Keyring(#[from] keyring::Error),
#[error("serialization: {0}")]
Serde(#[from] serde_json::Error),
#[error("io: {0}")]
Io(#[from] std::io::Error),
/// No persisted session found — caller must run an interactive login.
#[error("not logged in (no saved session)")]
NotLoggedIn,
#[error("{0}")]
Other(String),
}
pub type Result<T> = std::result::Result<T, Error>;