Some checks failed
Public Repo Readiness / Check Public Repo Readiness (push) Has been cancelled
- Extract FileStore port and InMemoryFileStore/FileStoreImpl/Reporter adapters - Add Reporter trait to notcore with TerminalReporter and JsonReporter - Refactor linker, package, status modules to use FileStore port - Add integration test suite with dotfiles fixtures - Add cross-crate integration tests - Remove ssh_rsa identity/recipient (unsupported) - Add rustqual.toml, .sccignore, notfiles.toml config files - Update CLAUDE.md, README.md, AGENTS.md with current architecture
32 lines
637 B
Rust
32 lines
637 B
Rust
use std::path::PathBuf;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum NotfilesError {
|
|
#[error("config file error: {0}")]
|
|
Config(String),
|
|
|
|
#[error("package not found: {name}")]
|
|
PackageNotFound { name: String },
|
|
|
|
#[error("conflict at {path}: {reason}")]
|
|
Conflict { path: PathBuf, reason: String },
|
|
|
|
#[error("path error: {0}")]
|
|
Path(String),
|
|
|
|
#[error("state file error: {0}")]
|
|
State(String),
|
|
|
|
#[error("glob error: {0}")]
|
|
Glob(String),
|
|
|
|
#[error("validation error: {0}")]
|
|
Validation(String),
|
|
|
|
#[error("{0}")]
|
|
Io(#[from] std::io::Error),
|
|
|
|
#[error("{0}")]
|
|
Other(String),
|
|
}
|