fix: Update main.rs with proper module structure and imports
This commit is contained in:
@@ -23,7 +23,8 @@ fn main() -> Result<()> {
|
||||
if staged.files.is_empty() {
|
||||
println!(
|
||||
"{}",
|
||||
"No staged changes found. Please stage your changes first with 'git add'.".yellow()
|
||||
"No staged changes found. Please stage your changes first with 'git add'."
|
||||
.yellow()
|
||||
);
|
||||
return Ok(());
|
||||
}
|
||||
@@ -52,14 +53,14 @@ fn main() -> Result<()> {
|
||||
|
||||
if args.dry_run {
|
||||
println!("{}", "\n[DRY RUN] Commit message preview:".bold().blue());
|
||||
println!("\n{}\n", message.bright_white().on_blue());
|
||||
println!("\n{}", message.bright_white().on_blue());
|
||||
println!("{}", "No changes were made.".yellow());
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if args.no_interactive {
|
||||
println!("{}", "\nGenerated commit message:".bold().green());
|
||||
println!("\n{}\n", message.bright_white().on_blue());
|
||||
println!("\n{}", message.bright_white().on_blue());
|
||||
|
||||
let confirm = dialoguer::Confirm::with_theme(&dialoguer::theme::ColorfulTheme::default())
|
||||
.with_prompt("Proceed with commit?")
|
||||
|
||||
Reference in New Issue
Block a user