V1.2.2 Added username and mail support
This commit is contained in:
parent
9ee348848c
commit
bed43b33dd
11
README.md
11
README.md
@ -4,7 +4,11 @@ Dies erzeugt ein neues GIT Repository auf ein Asustor NAS (Only GIT installed).
|
||||
|
||||
## Version
|
||||
|
||||
V 1.2.1
|
||||
V 1.2.2
|
||||
|
||||
## TODO
|
||||
- **TODO:** User abfangen wenn Remote nicht erkennt.
|
||||
- **TODO:** History einbauen
|
||||
|
||||
## Installation
|
||||
|
||||
@ -12,6 +16,11 @@ Dies erzeugt ein neues GIT Repository auf ein Asustor NAS (Only GIT installed).
|
||||
|
||||
## Changelog
|
||||
|
||||
### V 1.2.2 **(WIP)**
|
||||
- `main.py`
|
||||
- Added username and mail support
|
||||
|
||||
|
||||
### V 1.2.1 **(WIP)**
|
||||
- `main.py`
|
||||
- Added " " zu "_" und Illigale Zeichen abfangen
|
||||
|
||||
6
main.py
6
main.py
@ -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)? ")
|
||||
if ack.lower() == "y" or ack.lower() == "j":
|
||||
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:
|
||||
exit()
|
||||
|
||||
@ -34,8 +36,8 @@ commands = [
|
||||
"cd ../",
|
||||
f"cd {project_name}",
|
||||
"git init",
|
||||
'git config --global user.email "y-esser@t-online.de"',
|
||||
'git config --global user.name "Yannick"',
|
||||
f'git config --global user.email "{mail}"',
|
||||
f'git config --global user.name "{name}"',
|
||||
"touch README.txt",
|
||||
"git add .",
|
||||
'git commit -am "INIT"',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user