ctee

Crates.ioctee
lib.rsctee
version0.2.0
sourcesrc
created_at2022-02-01 21:13:37.763438
updated_at2023-07-22 11:08:07.515601
descriptionUnix's tee with stripping of ANSI-colors
homepage
repositoryhttps://github.com/Lipen/ctee
max_upload_size
id525397
size15,179
Konstantin Chukharev (Lipen)

documentation

README

ctee

Github Actions Crates.io Crate Downloads MIT License

Rust implementation of Unix's tee with stripping of ANSI colors.

Installation

Use the crate published on crates.io:

cargo install --locked ctee

OR manually clone and install the latest version:

git clone https://github.com/Lipen/ctee
cd ctee
cargo install --path .

Usage

$ ctee --help

Read from STDIN and write to STDOUT (unchanged) and FILES (without ANSI-colors)

USAGE:
    ctee [OPTIONS] [FILES]...

ARGS:
    <FILES>...    Output files

OPTIONS:
    -a, --append                     Append to the given files instead of overwriting
        --bs <BUFFER_SIZE>           Buffer size [default: 8192]
    -h, --help                       Print help information
        --strip-ansi <STRIP_ANSI>    Strip ANSI color codes when writing to files [default: true]
    -V, --version                    Print version information

EXAMPLES:
    <command-with-colorized-output> | ctee my.log

Credits

@shepmaster for the code of Rust implementation of tee.

Commit count: 14

cargo fmt