From cedf603f121636bdfa95432059c3c275c3ea3e9e Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 9 Jul 2020 09:59:00 -0700 Subject: [PATCH] minor formatting --- jc/cli.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jc/cli.py b/jc/cli.py index fb4d3d05..8ab718e5 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -140,6 +140,7 @@ else: 'white': 'ansiwhite', } + def set_env_colors(): """ Grab custom colors from JC_COLORS environment variable. JC_COLORS env variable takes 4 comma @@ -179,10 +180,10 @@ def set_env_colors(): # Try the color set in the JC_COLORS env variable first. If it is set to default, then fall back to default colors return { - Name.Tag: f'bold {PYGMENT_COLOR[color_list[0]]}' if not color_list[0] == 'default' else 'bold ' + PYGMENT_COLOR['blue'], # key names - Keyword: PYGMENT_COLOR[color_list[1]] if not color_list[1] == 'default' else PYGMENT_COLOR['brightblack'], # true, false, null - Number: PYGMENT_COLOR[color_list[2]] if not color_list[2] == 'default' else PYGMENT_COLOR['magenta'], # numbers - String: PYGMENT_COLOR[color_list[3]] if not color_list[3] == 'default' else PYGMENT_COLOR['green'] # strings + Name.Tag: f'bold {PYGMENT_COLOR[color_list[0]]}' if not color_list[0] == 'default' else f"bold {PYGMENT_COLOR['blue']}", # key names + Keyword: PYGMENT_COLOR[color_list[1]] if not color_list[1] == 'default' else PYGMENT_COLOR['brightblack'], # true, false, null + Number: PYGMENT_COLOR[color_list[2]] if not color_list[2] == 'default' else PYGMENT_COLOR['magenta'], # numbers + String: PYGMENT_COLOR[color_list[3]] if not color_list[3] == 'default' else PYGMENT_COLOR['green'] # strings }