{"repo":"dalance/pipecolor","free":true,"listed":false,"github":"https://github.com/dalance/pipecolor","clone":"git clone https://github.com/dalance/pipecolor.git","description":"A terminal filter to colorize output","language":"Rust","stars":84,"topics":["rust","command-line-tool","pipeline","terminal"],"license":"MIT","category":"cli-tools","readme_excerpt":"pipecolor A terminal filter to colorize output Description pipecolor is a terminal filter to colorize output. You can customize the colorize rule by regular expression. Demo This demonstration uses ./sample/demo.toml configuration. Install Download from release page, and extract to the directory in PATH. Alternatively you can install by cargo. Put the colorize rule file to /.pipecolor.toml . sample/pipecolor.toml in this repository is an example. Usage pipecolor can receive input through pipe, and colorize the output. Filenames can be specified. If output is redirected to a file, colorization is disabled automatically. You can force to colorize by pipecolor --mode always . Colorize rule See the example rule sample/pipecolor.toml . lines.pat is a regular expression to specify colorize lines. If the expression is matched, the matched line is colorize to colors specified by lines.colors . lines.colors is an array of colors, the first color is used to colorize the whole line. The rest colors are used to colorize the captured group in the expression. In the example, the whole line is colorized to White , the first group captured by (. ?) is colorized to LightGreen . lines.tokens specifies the special tokens to be colorized in the matched line. If no token is required, tokens can be omitted. Available colors The available colors are below. - Black - Blue - Cyan - Default - Green - LightBlack - LightBlue - LightCyan - LightGreen - LightMagenta - LightRed - LightWhite - LightYellow -","default_branch":null,"files":null,"tree":[],"storefront":"/r/dalance","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dalance/pipecolor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}