Skip to content

Commit ca350ac

Browse files
author
Victor Lamoine
committed
Display git repository name as blue in git multi
1 parent c7448d9 commit ca350ac

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

gitplus/cmd_git_multi.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
from typing import *
2525

26+
class term_colors:
27+
BLUE = '\033[34m'
28+
RESET = '\033[0m'
29+
2630
# Prefix for git command output:
2731
PREFIX = '\t'
2832

@@ -71,7 +75,7 @@ def process_project(current_path: str, file_name: str) -> None:
7175
do_output = True
7276

7377
if not group_by_output:
74-
print('%s:' % file_name)
78+
print(term_colors.BLUE+'%s:' % file_name+term_colors.RESET)
7579

7680
execute = True
7781
if only_if_changed:
@@ -216,6 +220,6 @@ def process_project(current_path: str, file_name: str) -> None:
216220

217221
result_outputs.sort()
218222
for key, value in result_outputs:
219-
print(key)
223+
print(term_colors.BLUE+key+term_colors.RESET)
220224
print(value)
221225
print()

0 commit comments

Comments
 (0)