commitmessagegenerator 1.2.3__py3-none-any.whl → 1.2.5__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,8 @@ import argparse
2
2
  import subprocess
3
3
  from .generator import gerar_mensagem_commit
4
4
  from .configure import api_key
5
+ import sys
6
+ import getpass
5
7
 
6
8
  def main():
7
9
  parser = argparse.ArgumentParser(description="Gerador de mensagens de commit com IA")
@@ -28,11 +30,11 @@ def main():
28
30
  subprocess.run(["git", "push"])
29
31
 
30
32
  if args.configure:
31
- print("\nPlease input your API KEY\nThis is directly set in the .env file\n")
32
- key = input()
33
+ print("\nPlease input your API KEY\nThis is directly set in the .env file")
34
+ key = getpass.getpass()
33
35
  api_key(key)
34
36
  print("\nAPI KEY saved in .env file\n")
35
37
 
36
- if not args.commit or not args.commitpush or not args.configure:
38
+ if len(sys.argv) == 1:
37
39
  print("\nRemoving staged changes (git reset)...")
38
40
  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.5
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=lpYpRpjcKY6dQ2uhm6Rwpos_lEy9RELhuvE6aSI2jxI,1475
3
+ commitmessagegenerator/configure.py,sha256=gzG9cp4B4qIXsoGVTSq-D80N6cmf_A77W73s0k-JkyQ,981
4
+ commitmessagegenerator/generator.py,sha256=c32Z0jTafzGVo0alQyRaOUGn63c40hr55hnRWl4KbH8,1407
5
+ commitmessagegenerator-1.2.5.dist-info/licenses/LICENSE,sha256=q7KJbcPCqUAvkBuI1QNc8Kg9XPfBfnNkLN9WKwudO8U,11
6
+ commitmessagegenerator-1.2.5.dist-info/METADATA,sha256=Mttcg1yReqj4l0WsHRj7mFQIPouuxCO1Mpz2DstIoEE,1707
7
+ commitmessagegenerator-1.2.5.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
8
+ commitmessagegenerator-1.2.5.dist-info/entry_points.txt,sha256=VmVQY00e0SuHsTFZmOCcyN0VYCQlVnZrdZNJdUGLCVo,62
9
+ commitmessagegenerator-1.2.5.dist-info/top_level.txt,sha256=G8wUZw8MTtvYs1WgehFVTPKqw5Td7gGedZZIQbZH1Co,23
10
+ commitmessagegenerator-1.2.5.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,,