@@ -14,26 +14,24 @@ def all():
1414 ''' Pushes the latest changes to & from every repository found within this projects scope '''
1515 os .chdir (BASE_DIR )
1616
17- console .out (f"\n { PROJECT_NAME .upper ()} \n ------------------------- " , "yellow " )
17+ console .out (f"\n > { PROJECT_NAME .upper ()} " , "amber " )
1818 os .system (f'''git add . && git commit -m "{ AUTO_COMMIT_MESSAGE } " && git push''' )
1919
2020 pushed_apis = []
2121 api_dir = f"{ BASE_DIR } /api"
2222
2323 for client in CLIENT_DATA :
24- print ("\n " )
2524 source_dir = CLIENT_DATA [client ]["src" ]
2625 source_api = BASE_DIR + f'/api/{ client } '
2726
2827 if os .path .exists (f"{ source_dir } /.git" ):
29- console .out (f"{ client .upper ()} (CLIENT)\n ------------------------- " , "yellow " )
28+ console .out (f"\n > { client .upper ()} (CLIENT)" , "amber " )
3029 os .chdir (source_dir )
3130 os .system (f'''git add . && git commit -m "{ AUTO_COMMIT_MESSAGE } " && git push''' )
3231 os .chdir (BASE_DIR )
33- print ("\n " )
3432
3533 if os .path .exists (f"{ source_api } /.git" ):
36- console .out (f"{ client .upper ()} (API)\n ------------------------- " , "yellow " )
34+ console .out (f"\n > { client .upper ()} (API)" , "amber " )
3735 os .chdir (source_api )
3836 os .system (f'''git add . && git commit -m "{ AUTO_COMMIT_MESSAGE } " && git push''' )
3937 os .chdir (BASE_DIR )
@@ -43,7 +41,7 @@ def all():
4341 for dir in potential_apis :
4442 if (dir_path := f"{ BASE_DIR } /api/{ dir } " ) and isdir (dir_path ) and (contents := listdir (dir_path )):
4543 if '.git' in contents and dir not in pushed_apis :
46- console .out (f"{ dir .upper ()} (API)\n ------------------------- " , "yellow " )
44+ console .out (f"\n > { dir .upper ()} (API)" , "amber " )
4745 os .chdir (dir_path )
4846 os .system (f'''git add . && git commit -m "{ AUTO_COMMIT_MESSAGE } " && git push''' )
4947 os .chdir (BASE_DIR )
0 commit comments