V1.2.2 Added username and mail support

This commit is contained in:
Yannick 2023-06-12 21:38:25 +02:00
parent 9ee348848c
commit bed43b33dd
2 changed files with 14 additions and 3 deletions

View File

@ -4,7 +4,11 @@ Dies erzeugt ein neues GIT Repository auf ein Asustor NAS (Only GIT installed).
## Version ## Version
V 1.2.1 V 1.2.2
## TODO
- **TODO:** User abfangen wenn Remote nicht erkennt.
- **TODO:** History einbauen
## Installation ## Installation
@ -12,6 +16,11 @@ Dies erzeugt ein neues GIT Repository auf ein Asustor NAS (Only GIT installed).
## Changelog ## Changelog
### V 1.2.2 **(WIP)**
- `main.py`
- Added username and mail support
### V 1.2.1 **(WIP)** ### V 1.2.1 **(WIP)**
- `main.py` - `main.py`
- Added " " zu "_" und Illigale Zeichen abfangen - Added " " zu "_" und Illigale Zeichen abfangen

View File

@ -17,6 +17,8 @@ project_name= project_name.translate(ili_signs_tab)
ack = input(f"\nOkay > {username} <, bitte prüfe ob der Name so richtig ist: > {project_name} <\nfür den Host > {hostname} < auf dem Port > {port} < (y/n)? ") ack = input(f"\nOkay > {username} <, bitte prüfe ob der Name so richtig ist: > {project_name} <\nfür den Host > {hostname} < auf dem Port > {port} < (y/n)? ")
if ack.lower() == "y" or ack.lower() == "j": if ack.lower() == "y" or ack.lower() == "j":
print("\nSuper, ich lege los!") print("\nSuper, ich lege los!")
name = input("Wie ist dein Name für den Remotehost? ")
mail = input("Wie ist deine E-Mail für den Remotehost? ")
else: else:
exit() exit()
@ -34,8 +36,8 @@ commands = [
"cd ../", "cd ../",
f"cd {project_name}", f"cd {project_name}",
"git init", "git init",
'git config --global user.email "y-esser@t-online.de"', f'git config --global user.email "{mail}"',
'git config --global user.name "Yannick"', f'git config --global user.name "{name}"',
"touch README.txt", "touch README.txt",
"git add .", "git add .",
'git commit -am "INIT"', 'git commit -am "INIT"',