Skip to main content

hyperlane_cli/new/
enum.rs

1/// Errors that can occur during project creation
2#[derive(Debug, thiserror::Error)]
3pub enum NewError {
4    /// IO error occurred
5    #[error("IO error: {0}")]
6    IoError(#[from] std::io::Error),
7    /// Git command not found
8    #[error("Git is not installed or not found in PATH")]
9    GitNotFound,
10    /// Project already exists
11    #[error("Project directory '{0}' already exists")]
12    ProjectExists(String),
13    /// Git clone failed
14    #[error("Git clone failed: {0}")]
15    CloneFailed(String),
16    /// Invalid project name
17    #[error("Invalid project name: {0}")]
18    InvalidName(String),
19}