jq: add object keys color

This commit is contained in:
sudosubin 2024-06-08 22:34:29 +09:00
parent a7117efb37
commit e643370596
No known key found for this signature in database
GPG key ID: 68971E6A5D6DE3D6

View file

@ -22,6 +22,7 @@ let
strings = colorType;
arrays = colorType;
objects = colorType;
objectKeys = colorType;
};
};
@ -41,7 +42,7 @@ in {
description = ''
The colors used in colored JSON output.
See the [Colors section](https://jqlang.github.io/jq/manual/#Colors)
See the [Colors section](https://jqlang.github.io/jq/manual/#colors)
of the jq manual.
'';
@ -54,6 +55,7 @@ in {
strings = "0;33";
arrays = "1;35";
objects = "1;37";
objectKeys = "1;34";
}
'';
@ -65,6 +67,7 @@ in {
strings = "0;32";
arrays = "1;37";
objects = "1;37";
objectKeys = "1;34";
};
type = colorsType;
@ -78,7 +81,7 @@ in {
home.sessionVariables = let c = cfg.colors;
in {
JQ_COLORS =
"${c.null}:${c.false}:${c.true}:${c.numbers}:${c.strings}:${c.arrays}:${c.objects}";
"${c.null}:${c.false}:${c.true}:${c.numbers}:${c.strings}:${c.arrays}:${c.objects}:${c.objectKeys}";
};
};
}