Lore, the new version control system from Epic Games, has a very nice feature to render CLI output as JSON, by using the --json command line argument. For example, lore --json history. If you have the grc generic colouriser app installed to provide syntax highlighting for other CLI commands, you can use the following config to show this JSON output as syntax highlighted.
- Create and edit
~/.grc/grc.confto matchlore --json(with trailing text) and use theconf.jsonconfig file for the output - Create and edit
~/.grc/conf.jsonto describe the syntax highlighting patterns and config (note that GitHub's gists don't like a file ending.jsonthat isn't actually a JSON file)