commitmessagegenerator 1.2.3__py3-none-any.whl → 1.2.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ import argparse
2
2
  import subprocess
3
3
  from .generator import gerar_mensagem_commit
4
4
  from .configure import api_key
5
+ import sys
5
6
 
6
7
  def main():
7
8
  parser = argparse.ArgumentParser(description="Gerador de mensagens de commit com IA")
@@ -33,6 +34,6 @@ def main():
33
34
  api_key(key)
34
35
  print("\nAPI KEY saved in .env file\n")
35
36
 
36
- if not args.commit or not args.commitpush or not args.configure:
37
+ if len(sys.argv) == 1:
37
38
  print("\nRemoving staged changes (git reset)...")
38
39
  subprocess.run(["git", "reset"])
@@ -19,4 +19,4 @@ def api_key(key):
19
19
  lines = outfile.readlines()
20
20
  env_in_gitignore = next((line for line in lines if line.strip() == ".env"), None)
21
21
  if not env_in_gitignore:
22
- outfile.write("\n.env\n")
22
+ outfile.write("\n.env")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commitmessagegenerator
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Generate commit messages with AI (Google Gemini) automatically using `git diff`.
5
5
  Author-email: Gabriel Terceiro <gcarolinoterceiro@gmail.com>
6
6
  License: MIT
@@ -0,0 +1,10 @@
1
+ commitmessagegenerator/__init__.py,sha256=Wsl1vaSI5fWuK3B9MfZnPp1PxnRfTmnvW_20vgswgT0,45
2
+ commitmessagegenerator/cli.py,sha256=z4qeceip7-uhJAujXPyJ0yP903Dxmf9_MJwrfh45I2k,1451
3
+ commitmessagegenerator/configure.py,sha256=gzG9cp4B4qIXsoGVTSq-D80N6cmf_A77W73s0k-JkyQ,981
4
+ commitmessagegenerator/generator.py,sha256=c32Z0jTafzGVo0alQyRaOUGn63c40hr55hnRWl4KbH8,1407
5
+ commitmessagegenerator-1.2.4.dist-info/licenses/LICENSE,sha256=q7KJbcPCqUAvkBuI1QNc8Kg9XPfBfnNkLN9WKwudO8U,11
6
+ commitmessagegenerator-1.2.4.dist-info/METADATA,sha256=FdbByPlkwsqIJYL3ivA_YDARvbCcwkyR4CZlPapMHTE,1707
7
+ commitmessagegenerator-1.2.4.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
8
+ commitmessagegenerator-1.2.4.dist-info/entry_points.txt,sha256=VmVQY00e0SuHsTFZmOCcyN0VYCQlVnZrdZNJdUGLCVo,62
9
+ commitmessagegenerator-1.2.4.dist-info/top_level.txt,sha256=G8wUZw8MTtvYs1WgehFVTPKqw5Td7gGedZZIQbZH1Co,23
10
+ commitmessagegenerator-1.2.4.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- commitmessagegenerator/__init__.py,sha256=Wsl1vaSI5fWuK3B9MfZnPp1PxnRfTmnvW_20vgswgT0,45
2
- commitmessagegenerator/cli.py,sha256=WxtNhwgC0jwn23TzLkuCeAmg2bvLZq62yt37gnl_Gzk,1481
3
- commitmessagegenerator/configure.py,sha256=31t7uvR3IFGHCf7-0PkU4DOKDQH6BDhrqcuIa6j1mKY,983
4
- commitmessagegenerator/generator.py,sha256=c32Z0jTafzGVo0alQyRaOUGn63c40hr55hnRWl4KbH8,1407
5
- commitmessagegenerator-1.2.3.dist-info/licenses/LICENSE,sha256=q7KJbcPCqUAvkBuI1QNc8Kg9XPfBfnNkLN9WKwudO8U,11
6
- commitmessagegenerator-1.2.3.dist-info/METADATA,sha256=8oxaUbmHU2BLVusY1o5yrWAsWRnRi1jRnRhvgSSAI5A,1707
7
- commitmessagegenerator-1.2.3.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
8
- commitmessagegenerator-1.2.3.dist-info/entry_points.txt,sha256=VmVQY00e0SuHsTFZmOCcyN0VYCQlVnZrdZNJdUGLCVo,62
9
- commitmessagegenerator-1.2.3.dist-info/top_level.txt,sha256=G8wUZw8MTtvYs1WgehFVTPKqw5Td7gGedZZIQbZH1Co,23
10
- commitmessagegenerator-1.2.3.dist-info/RECORD,,