use std::path::PathBuf;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("Failed to parse markdown: {0}")]
ParseError(String),
#[error("Configuration error: {0}")]
ConfigError(String),
#[error("Invalid file path: {}", .0.display())]
InvalidPath(PathBuf),
#[error("Pattern error: {0}")]
PatternError(#[from] glob::PatternError),
#[error("Glob error: {0}")]
GlobError(#[from] glob::GlobError),
#[error("TOML error: {0}")]
TomlError(#[from] toml::de::Error),
#[error("Formatting error: {0}")]
FormattingError(String),
}