initial commit
This commit is contained in:
19
bash/.git-formatter/scripts/commit.py
Normal file
19
bash/.git-formatter/scripts/commit.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from utils.format import format_commit
|
||||
from utils.git_commands import git_commit
|
||||
from utils.messages import (
|
||||
title,
|
||||
instructions,
|
||||
commit_instructions,
|
||||
)
|
||||
|
||||
|
||||
def add_commit(message=''):
|
||||
commit_title = f"{format_commit()}: "
|
||||
commit_message = message
|
||||
|
||||
if commit_message == '':
|
||||
title("Commit Message")
|
||||
instructions(commit_instructions)
|
||||
commit_message = input(commit_title)
|
||||
|
||||
git_commit(f"{commit_title}{commit_message}")
|
||||
Reference in New Issue
Block a user