joern icon indicating copy to clipboard operation
joern copied to clipboard

[Improvement] Colorize graph types in command line tool

Open psparc82 opened this issue 2 years ago • 4 comments

Its sometimes difficult to remember which parts of your current command are nodes, properties, execution directives or anything else as the whole command uses the same color. For example this whole command is in white text:

image

It'd be great if parts of the command could be colorized to highlight which parts are nodes, properties, execution directives and anything else. For example:

image

(Bash was used to generate the example above: echo -e "\n\033[35mjoern>\033[0m cpg.\033[32mmetaData\033[0m.\033[33mlanguage\033[0m.\033[34mtoList\033[0m\n")

psparc82 avatar Apr 20 '23 08:04 psparc82

That's a great idea. It's not the highest priority item on the list of course, but I'll see if we can get a simplistic version of the above done somehow.

mpollmeier avatar Apr 20 '23 09:04 mpollmeier

As long as we are using Ammonite: There is codeColorsImplicit which can be shadowed. I do not know how to apply this to our traversal API though.

max-leuthaeuser avatar Apr 20 '23 11:04 max-leuthaeuser

we'll shortly drop ammonite (probably next week)... but I think we can get something similar in the new repl.

mpollmeier avatar Apr 20 '23 12:04 mpollmeier

did this ever get implemented?

psparc82 avatar Oct 16 '24 12:10 psparc82