新增对 Kimi、DeepSeek、OpenRouter 的支持并升级版本至 0.1.2

This commit is contained in:
2026-02-01 15:09:39 +08:00
parent cb24b8ae85
commit c3cd01dbcd
10 changed files with 61 additions and 173 deletions

View File

@@ -148,17 +148,22 @@ impl CommitCommand {
}
}
if self.dry_run {
println!("\n{}", "Dry run - commit not created.".yellow());
return Ok(());
}
// Execute commit
let result = if self.amend {
if self.dry_run {
println!("\n{}", "Dry run - commit not amended.".yellow());
return Ok(());
}
self.amend_commit(&repo, &commit_message)?;
None
} else {
Some(repo.commit(&commit_message, self.sign)?)
if self.dry_run {
println!("\n{}", "Dry run - commit not created.".yellow());
return Ok(());
}
CommitBuilder::new()
.message(&commit_message)
.sign(self.sign)
.execute(&repo)?
};
if let Some(commit_oid) = result {