Added a new command to run the linter on dirty files, fix problems, and then commit.

This commit is contained in:
Paul Gauthier 2024-05-18 18:35:33 -07:00
parent 7b8e603249
commit 04084883e8
4 changed files with 38 additions and 1 deletions

View file

@ -355,6 +355,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
coder.commands.cmd_commit("")
return
if args.lint:
coder.commands.cmd_lint("")
return
if args.show_repo_map:
repo_map = coder.get_repo_map()
if repo_map: