fix: Update main.rs with proper module structure and imports
Some checks failed
CI / lint (push) Failing after 4s
CI / build (push) Has been skipped
CI / test (push) Has been skipped

This commit is contained in:
2026-02-01 12:32:32 +00:00
parent dec64839ce
commit 28ce772dff

View File

@@ -23,7 +23,8 @@ fn main() -> Result<()> {
if staged.files.is_empty() { if staged.files.is_empty() {
println!( 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(()); return Ok(());
} }
@@ -52,14 +53,14 @@ fn main() -> Result<()> {
if args.dry_run { if args.dry_run {
println!("{}", "\n[DRY RUN] Commit message preview:".bold().blue()); 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()); println!("{}", "No changes were made.".yellow());
return Ok(()); return Ok(());
} }
if args.no_interactive { if args.no_interactive {
println!("{}", "\nGenerated commit message:".bold().green()); 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()) let confirm = dialoguer::Confirm::with_theme(&dialoguer::theme::ColorfulTheme::default())
.with_prompt("Proceed with commit?") .with_prompt("Proceed with commit?")