| 66 | |
| 67 | #[derive(Error, Debug)] |
| 68 | enum GourceError { |
| 69 | #[error("Invalid URL")] |
| 70 | InvalidUrl, |
| 71 | #[error("Only private GitHub repositories are supported")] |
| 72 | UnsupportedRepository, |
| 73 | #[error("Failed to create temporary directory")] |
| 74 | TempDirCreationFailed, |
| 75 | #[error( |
| 76 | "Failed to clone repository. Your repository may be private and requires an access token." |
| 77 | )] |
| 78 | CloneFailed, |
| 79 | #[error("Failed to count commits")] |
| 80 | CommitCountFailed, |
| 81 | #[error("Failed to generate Gource visualization")] |
| 82 | GourceGenerationFailed, |
| 83 | #[error("Failed to decrypt access token")] |
| 84 | DecryptionFailed, |
| 85 | } |
| 86 | |
| 87 | type JobStore = Arc<Mutex<HashMap<String, JobStatus>>>; |
| 88 |
nothing calls this directly
no outgoing calls
no test coverage detected