|
1 | 1 | use phf::phf_map;
|
2 | 2 |
|
3 | 3 | pub static MESSAGES: phf::Map<&'static str, &'static str> = phf_map! {
|
4 |
| - // Configuration file I/O |
5 |
| - "config_loaded" => "Configuration loaded successfully", |
6 |
| - "failed_print_config" => "Failed to print configuration: {}", |
7 |
| - "failed_parse_config" => "Failed to parse config: {}", |
8 |
| - "global_config_not_initialized" => "Global configuration not initialized", |
| 4 | + // Git |
| 5 | + "err_git_not_found" => "Git is not installed or not in system PATH. Please install Git first.\nVisit https://git-scm.com/downloads to download.", |
| 6 | + "err_git_not_working" => "Git is installed but not working properly. Please check your Git installation.\nTo reinstall, visit https://git-scm.com/downloads .", |
9 | 7 |
|
10 |
| - // Configuration file details |
11 |
| - "config_details" => "---- Configuration Details -----", |
12 |
| - "language" => "Language", |
13 |
| - "authors" => "Authors", |
14 |
| - "date_range" => "Date Range", |
15 |
| - "repos" => "Repositories", |
16 |
| - "includes" => "Includes", |
17 |
| - "excludes" => "Excludes", |
18 |
| - "format" => "Format", |
| 8 | + // Configuration file I/O |
| 9 | + "config_loaded" => "Configuration loaded successfully", |
| 10 | + "failed_print_config" => "Failed to print configuration: {}", |
| 11 | + "failed_parse_config" => "Failed to parse config: {}", |
| 12 | + "global_config_not_initialized" => "Global configuration not initialized", |
19 | 13 |
|
20 |
| - // Keypress |
21 |
| - "wait_for_key" => "Press any key to continue...", |
22 |
| - "press_to_exit" => "Press any key to exit...", |
| 14 | + // Configuration file details |
| 15 | + "config_details" => "---- Configuration Details -----", |
| 16 | + "language" => "Language", |
| 17 | + "authors" => "Authors", |
| 18 | + "date_range" => "Date Range", |
| 19 | + "repos" => "Repositories", |
| 20 | + "includes" => "Includes", |
| 21 | + "excludes" => "Excludes", |
| 22 | + "format" => "Format", |
23 | 23 |
|
24 |
| - // Commit categories |
25 |
| - "commit_category_features" => "Features", |
26 |
| - "commit_category_bug_fixes" => "Bug Fixes", |
27 |
| - "commit_category_docs" => "Documentation", |
28 |
| - "commit_category_style" => "Optimized Style", |
29 |
| - "commit_category_refactor" => "Refactored", |
30 |
| - "commit_category_test" => "Test Cases", |
31 |
| - "commit_category_chores" => "Chores", |
| 24 | + // Keypress |
| 25 | + "wait_for_key" => "Press any key to continue...", |
| 26 | + "press_to_exit" => "Press any key to exit...", |
32 | 27 |
|
33 |
| - // Git repository error messages |
34 |
| - "err_repo_not_found" => "Repo path does not exist or is not a directory: {}", |
35 |
| - "err_git_log_failed" => "git log failed in directory: {}\nstderr: {}", |
| 28 | + // Commit categories |
| 29 | + "commit_category_features" => "Features", |
| 30 | + "commit_category_bug_fixes" => "Bug Fixes", |
| 31 | + "commit_category_docs" => "Documentation", |
| 32 | + "commit_category_style" => "Optimized Style", |
| 33 | + "commit_category_refactor" => "Refactored", |
| 34 | + "commit_category_test" => "Test Cases", |
| 35 | + "commit_category_chores" => "Chores", |
36 | 36 |
|
37 |
| - // Save report |
38 |
| - "no_report_generated" => "No report generated", |
39 |
| - "err_save_report_failed" => "Failed to save report: {}", |
40 |
| - "report_saved" => "Report saved to {}", |
| 37 | + // Git repository error messages |
| 38 | + "err_repo_not_found" => "Repo path does not exist or is not a directory: {}", |
| 39 | + "err_git_log_failed" => "git log failed in directory: {}\nstderr: {}", |
| 40 | + |
| 41 | + // Save report |
| 42 | + "no_report_generated" => "No report generated", |
| 43 | + "err_save_report_failed" => "Failed to save report: {}", |
| 44 | + "report_saved" => "Report saved to {}", |
41 | 45 | };
|
0 commit comments