Skip to content
This repository was archived by the owner on Jan 3, 2026. It is now read-only.

Commit 24664bf

Browse files
committed
🤖 [AUTO] 1.2.11 2023-05-30 16:31:04
1 parent e7554e6 commit 24664bf

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

core/tools/commands/git/pull.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,28 @@ def all():
1818
''' Pulls the latest changes to & from every repository found within this projects scope '''
1919
os.chdir(BASE_DIR)
2020

21-
console.out(f"\n{PROJECT_NAME.upper()}\n-------------------------", "yellow")
21+
console.out(f"\n> {PROJECT_NAME.upper()}", "amber")
2222
os.system("git pull --recurse-submodules")
2323

2424
pulled_apis = []
2525
api_dir = f"{BASE_DIR}/api"
2626

2727
for client in CLIENT_DATA:
28-
print("\n")
2928
source_dir = CLIENT_DATA[client]["src"]
3029
source_api = BASE_DIR + f'/api/{client}'
3130

3231
if os.path.exists(f"{source_dir}/.git"):
33-
console.out(f"{client.upper()} (CLIENT)\n-------------------------", "yellow")
32+
console.out(f"\n> {client.upper()} (CLIENT)", "amber")
3433
os.system(f"cd {source_dir} && git pull --recurse-submodules && cd {BASE_DIR}")
35-
print("\n")
3634

3735
if os.path.exists(f"{source_api}/.git"):
3836
pulled_apis.append(client)
39-
console.out(f"{client.upper()} (API)\n-------------------------", "yellow")
37+
console.out(f"\n> {client.upper()} (API)", "amber")
4038
os.system(f"cd {source_api} && git pull --recurse-submodules && cd {BASE_DIR}")
4139

4240
potential_apis = listdir(api_dir)
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 pulled_apis:
46-
console.out(f"{dir.upper()} (API)\n-------------------------", "yellow")
44+
console.out(f"\n> {dir.upper()} (API)", "amber")
4745
os.system(f"cd {dir_path} && git pull --recurse-submodules && cd {BASE_DIR}")

core/tools/commands/git/push.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)