use std::path::PathBuf;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("path is not a directory: {0}")]
NotADirectory(PathBuf),
#[error("not a git repository: {0}")]
NotAGitRepository(PathBuf),
#[error("io error: {0}")]
Io(#[from] std::io::Error),
#[error("json error: {0}")]
Json(#[from] serde_json::Error),
#[error("git error: {0}")]
Git(String),
#[error("config error: {0}")]
Config(String),
}
pub type Result<T> = std::result::Result<T, Error>;