fix: resolve module structure issues by separating CLI and git modules
Some checks failed
CI / build (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
- Removed duplicated git module code from cli.rs - Created dedicated git.rs module with GitRepo, StagedChanges, ChangedFile, FileStatus definitions - Updated all modules (analyzer, generator, prompt) to import from super::git - Fixed module organization to resolve compilation errors
This commit is contained in:
@@ -2,10 +2,17 @@
|
|||||||
name = "auto-commit"
|
name = "auto-commit"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
description = "A Rust CLI tool that analyzes git staged changes and generates conventional commit messages"
|
||||||
|
authors = ["Auto Commit Contributors"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.4", features = ["derive"] }
|
clap = { version = "4.4", features = ["derive"] }
|
||||||
git2 = "0.18"
|
|
||||||
dialoguer = "0.11"
|
dialoguer = "0.11"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
colored = "2.1"
|
colored = "2.1"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = 3
|
||||||
|
lto = true
|
||||||
|
|||||||
Reference in New Issue
Block a user