main.py 612 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. """
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2024/07/22
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc : enter point
  8. """
  9. from auto_commit.utils.colors import bcolors
  10. from regex import P
  11. from auto_commit.auto_commit import AutoCommit
  12. from auto_commit.options import parse_args
  13. if __name__=='__main__':
  14. args = parse_args()
  15. try:
  16. if args['path'] is not None:
  17. auto_commit = AutoCommit(params=args)
  18. auto_commit.run()
  19. except:
  20. print(f"{bcolors.FAIL}Please input path {bcolors.ENDC}")