the-cafe / git-ai-commit

let AI write your commit messages
https://pypi.org/project/git-ai-commit/
52 stars 0 forks source link

✨Added local database display functionality #21

Closed Seif-Mamdouh closed 3 months ago

Seif-Mamdouh commented 3 months ago

Description

In this PR we adjusted git_ai_commit config to display local database configuration

Test Plan

 pip3 install . && pre-commit install && pre-commit autoupdate

Attempt to display to display local database configuration

git_ai_commit config

Excepted output

Current Database Contents:
{
  "config": {
    "model": "Model-Type",
    "anthropic_api_key": "",
    "logger_enabled": true,
    "openai_api_key": ""
  }
}
ming1in commented 3 months ago

I think we can simply this implementation by just replacing the help logic in

https://github.com/ming1in/ai-commit-msg/blob/d1a9712b3ffd3ed5bf651f722250ba6c02560ad3/ai_commit_msg/cli/config_handler.py#L30-L37