aki-mcolor

aki-mcolor program is mark up text with color.

Features

aki-mcolor is mark up text with color.

text aki-mcolor --help

```text Usage: aki-mcolor [options]

color marker by rust lang.

Options: -r, --red regular expression, mark color is red -g, --green regular expression, mark color is green -b, --blue regular expression, mark color is blue -c, --cyan regular expression, mark color is cyan -m, --magenda regular expression, mark color is magenda -y, --yellow regular expression, mark color is yellow -u, --unmark regular expression, unmark color

-H, --help display this help and exit -V, --version display version information and exit

Env: RUSTMCOLORREDST red start sequence RUSTMCOLORGREENST greep start sequence RUSTMCOLORBLUEST blue start sequence RUSTMCOLORCYANST cyan start sequence RUSTMCOLORMAGENDAST magenda start sequence RUSTMCOLORYELLOWST yellow start sequence RUSTMCOLORED color end sequence ```

Quick install

  1. you can install this into cargo bin path:

text cargo install aki-mcolor

  1. you can build debian package:

text cargo deb

and install .deb into your local repository of debian package.

Examples

Command line example 1

Makes "ca" red and "b" green in standard input text.

echo "abcabca" | aki-mcolor -r "ca" -g "b"

result output :

![out abcabca image]

Command line example 2

Extract "arm" from the rustup target list and make "musl" green and "android" cyan.

rustup target list | aki-mline -e arm | aki-mcolor -g "musl" -c "android"

result output :

![out rustup image]

Library example

See [fn execute()] for this library examples.