From 7f869b4b187d70752207a7e74c13b858446f898f Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 9 Apr 2020 07:31:21 -0700 Subject: [PATCH] change colors to ansi and match jello style --- changelog.txt | 3 +++ jc/cli.py | 15 +++++---------- setup.py | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/changelog.txt b/changelog.txt index aef8bf7d..632928cc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ jc changelog +20200409 v1.10.2 +- Change colors to ansi and match jello colors + 20200402 v1.10.1 - Code cleanup diff --git a/jc/cli.py b/jc/cli.py index e77a3050..6eb31925 100644 --- a/jc/cli.py +++ b/jc/cli.py @@ -18,7 +18,7 @@ import jc.utils class info(): - version = '1.10.1' + version = '1.10.2' description = 'jc cli output JSON conversion tool' author = 'Kelly Brazil' author_email = 'kellyjonbrazil@gmail.com' @@ -81,16 +81,11 @@ parsers = [ class JcStyle(Style): - BLUE = '#2c5dcd' - GRAY = '#4d4d4d' - PURPLE = '#5918bb' - GREEN = '#00cc00' - styles = { - Name.Tag: f'bold {BLUE}', # key names - Keyword: GRAY, # true, false, null - Number: PURPLE, # int, float - String: GREEN # string + Name.Tag: 'bold ansiblue', # key names + Keyword: 'ansibrightblack', # true, false, null + Number: 'ansimagenta', # int, float + String: 'ansigreen' # string } diff --git a/setup.py b/setup.py index 62a94431..92de31c2 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.md', 'r') as f: setuptools.setup( name='jc', - version='1.10.1', + version='1.10.2', author='Kelly Brazil', author_email='kellyjonbrazil@gmail.com', description='This tool serializes the output of popular command line tools and filetypes to structured JSON output.',