col
colerr
cargo install colerr
col

colerr

Colorize stderr

by Dawid Ciężarkiewicz

1.0.0 (see all)License:MPL-2.0
cargo install colerr
Readme

colerr

Build Status Gitter Chat
Documentation

Introduction

colerr will wrap a given process and colorize it's standard error output.

colerr is written in rust programming language and utilizes: mio and mioco libraries. You probably don't care, but it's kind of important so I've mentioned it here.

Building

You need rust compiler bundled with cargo. Then cargo build --release should do the job.

Resulting binary will be in ./target/release/colerr. Just copy it to somewhere to your $PATH.

Usage:
    colorout [--] <cmd>...

Internals

colerr works by spawning a IO-handling child process that takes care of colorizing output. The parent process exec-s the requested command with stdin, stdout and stderr routed to a child.

This way colerr can be used as a drop-in replacement, as the colerr-ed PID will be the PID of the wrapped command. All signals etc. will be handled by the wrapped process itself, the only difference being a standard IO being handled by additional child process.

GitHub Stars

17

LAST COMMIT

6yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
1.0.0
6yrs ago
No alternatives found
No tutorials found
Add a tutorial