mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
change colors to ansi and match jello style
This commit is contained in:
15
jc/cli.py
15
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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user