feat: foundational domain types #1

Merged
phundrak merged 8 commits from feature/001-mvp-interactive-commit into develop 2026-02-06 03:27:28 +01:00
2 changed files with 21 additions and 0 deletions
Showing only changes of commit 0910761da8 - Show all commits

20
src/error.rs Normal file
View File

@@ -0,0 +1,20 @@
#[derive(Debug, thiserror::Error)]
pub enum Error {
// Domain errors
#[error("Invalid scope: {0}")]
InvalidScope(String),
#[error("Invalid description: {0}")]
InvalidDescription(String),
// Infrastructure errors
#[error("Not a Jujutsu repository")]
NotARepository,
#[error("jj is not installed or not in PATH")]
JjNotFound,
#[error("jj command failed: {message}")]
JjCommand { message: String, stderr: String },
// Application errors
#[error("Operation cancelled by user")]
Cancelled,
#[error("Non-interactive terminal detected")]
NonInteractive
}

View File

@@ -2,3 +2,4 @@ mod cli;
mod commit;
mod jj;
mod prompts;
mod error;