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