Description
Current behavior
Currently, for Ockam Command CLI help output, the syntax highlighting for fenced code blocks has been disabled. It didn't work properly on Linux.
This commit removes the use of the use of
FencedCodeBlockHighlighter::process_line()
.
Here's an example on Linux of the current behavior. Run ockam project ticket --help
. It produces the following output in the Examples section. Note that it does not have any syntax highlighting.
Desired behavior
With syntax highlighting via syntect crate, it should be whatever syntect produces for sh
syntax set.
Here are some places to get started in the code.
-
process_terminal_docs()
- This function is responsible for taking the CLAP help text output and formatting it just before displaying it to stdout. -
FencedCodeBlockHighlighter::process_line()
- This is the function that is generating the unexpected and undefined color spans and newlines in the output.
Activity