Crates.io | highlight-stderr |
lib.rs | highlight-stderr |
version | 0.3.0 |
source | src |
created_at | 2020-02-04 01:43:58.435732 |
updated_at | 2023-07-17 04:29:39.742937 |
description | Run a command and highlight its stderr, preserving the order of stdout and stderr |
homepage | |
repository | https://github.com/joshtriplett/highlight-stderr |
max_upload_size | |
id | 204646 |
size | 20,283 |
highlight-stderr
highlight-stderr
runs a command and highlights the stderr of that command,
while preserving the order of stdout and stderr. It sends both stdout and
stderr of the command to its stdout, making it easy to pipe to a pager or
similar.
By default, highlight-stderr
will highlight stderr in bold red, and leave
stdout normal. However, you can configure highlight-stderr
using the
environment variables HIGHLIGHT_STDERR
and HIGHLIGHT_STDOUT
, which can each
contain a color specification in git's color specification format, such as
bold white red
.
highlight-stderr
uses io-mux
to capture
the stdout and stderr of the command.
highlight-stderr
only runs on Linux.