Merge pull request #57 from nalbion/feature/user_id-from-getpass_getuser

user_id defaults to OS username
This commit is contained in:
LeonOstrez
2023-09-08 14:47:14 +02:00
committed by GitHub

View File

@@ -53,12 +53,16 @@ def get_arguments():
# Handle the error as needed, possibly exiting the script
else:
arguments['app_id'] = str(uuid.uuid4())
print(colored('\n------------------ STARTING NEW PROJECT ----------------------', 'green', attrs=['bold']))
print(f"If you wish to continue with this project in future run:")
print(colored(f'python {sys.argv[0]} app_id={arguments["app_id"]}', 'green', attrs=['bold']))
print(colored('--------------------------------------------------------------\n', 'green', attrs=['bold']))
if 'user_id' not in arguments:
arguments['user_id'] = username_to_uuid(getpass.getuser())
if 'email' not in arguments:
# todo change email so its not uuid4 but make sure to fix storing of development steps where
# 1 user can have multiple apps. In that case each app should have its own development steps