From 0a4d6ca9b262b158c81c50bba0f28fdd05ae3ecc Mon Sep 17 00:00:00 2001 From: Victor Lamoine Date: Mon, 17 Feb 2025 14:29:11 +0100 Subject: [PATCH] Display git repository name as blue in git multi --- gitplus/cmd_git_multi.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gitplus/cmd_git_multi.py b/gitplus/cmd_git_multi.py index 32dfcec..b5f66e9 100755 --- a/gitplus/cmd_git_multi.py +++ b/gitplus/cmd_git_multi.py @@ -23,6 +23,10 @@ from typing import * +class term_colors: + BLUE = '\033[34m' + RESET = '\033[0m' + # Prefix for git command output: PREFIX = '\t' @@ -71,7 +75,7 @@ def process_project(current_path: str, file_name: str) -> None: do_output = True if not group_by_output: - print('%s:' % file_name) + print(term_colors.BLUE+'%s:' % file_name+term_colors.RESET) execute = True if only_if_changed: @@ -216,6 +220,6 @@ def process_project(current_path: str, file_name: str) -> None: result_outputs.sort() for key, value in result_outputs: - print(key) + print(term_colors.BLUE+key+term_colors.RESET) print(value) print()