aki-mcolor

the mark up text with color program.

Features

Command help

aki-mcolor --help

``` Usage: aki-mcolor [options]

mark up text with color

Options: -r, --red write it in red -g, --green write it in green -b, --blue write it in blue -c, --cyan write it in cyan -m, --magenda write it in magenda -y, --yellow write it in yellow -u, --unmark write it in non-color

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

Option Parameters: regular expression, color the entire match.

Environments: AKIMCOLORCOLORSEQREDST red start sequence specified by ansi AKIMCOLORCOLORSEQGREENST greep start sequence specified by ansi AKIMCOLORCOLORSEQBLUEST blue start sequence specified by ansi AKIMCOLORCOLORSEQCYANST cyan start sequence specified by ansi AKIMCOLORCOLORSEQMAGENDAST magenda start sequence specified by ansi AKIMCOLORCOLORSEQYELLOWST yellow start sequence specified by ansi AKIMCOLORCOLORSEQED color end sequence specified by ansi ```

Quick install

  1. you can install this into cargo bin path:

cargo install aki-mcolor

  1. you can build debian package:

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.

Changelogs

This crate's changelog here.

License

This project is licensed under either of

at your option.