1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//! # Rona - Git Workflow Enhancement Tool
//!
//! Rona is a command-line interface tool designed to enhance your Git workflow with powerful features
//! and intuitive commands. It simplifies common Git operations and provides additional functionality
//! for managing commits, files, and repository status.
//!
//! ## Key Features
//!
//! - Intelligent file staging with pattern exclusion
//! - Structured commit message generation
//! - Streamlined push operations
//! - Interactive commit type selection
//! - Multi-shell completion support
//!
//! ## Usage
//!
//! ```bash
//! # Initialize Rona
//! rona init [editor]
//!
//! # Add files excluding patterns
//! rona -a "*.rs"
//!
//! # Generate commit message
//! rona -g
//!
//! # Commit and push changes
//! rona -c -p
//! ```
//!
//! For more detailed examples and usage instructions, see the [README.md](../README.md) file.
//!
//! # Architecture
//!
//! The application is organized into several modules:
//! - `cli`: Handles command-line interface and argument parsing
//! - `config`: Manages application configuration
//! - `errors`: Error handling and custom error types
//! - `git`: Organized Git-related functionality with focused submodules
//! - `my_clap_theme`: Custom theme for command-line output
//! - `utils`: Common utility functions
//!
//! # Error Handling
//!
//! The application implements a two-tier error handling approach:
//! 1. Initial Git repository validation
//! 2. Main application logic error handling through `Result` types
//!
use run;
use Result;
use exit;