initial commit
This commit is contained in:
11
bash/.git-formatter/utils/repo_name.py
Normal file
11
bash/.git-formatter/utils/repo_name.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
from config import REPO_FORMATS
|
||||
|
||||
|
||||
def repo_name() -> str:
|
||||
for repo in REPO_FORMATS:
|
||||
if repo in os.getcwd():
|
||||
return repo
|
||||
|
||||
print("Sorry, this repo isn't setup to use Git Formatter")
|
||||
exit(1)
|
||||
Reference in New Issue
Block a user