#formatter #terminal-text #terminal #parameters #command-line #read #stdin

app termformat

A simple command line terminal text formatter. Reads from parameter or stdin.

1 unstable release

Uses old Rust 2015

0.0.1 Oct 6, 2017

#18 in #reads

MIT license

8KB
142 lines

termformat

Build Status Crates.io

$ termformat --help
termformat 0.0.1
Andrew Hobden <andrew@hoverbear.org>
A simple command line terminal text formatter. Reads from parameter or stdin.

USAGE:
    termformat [FLAGS] [OPTIONS] [content]

FLAGS:
    -b, --bold         Make text bold.
    -h, --help         Prints help information
    -i, --italics      Make text italics.
    -u, --underline    Make text underline.
    -V, --version      Prints version information

OPTIONS:
        --bg <background>    Background color. [values: black, blue, bright_blue,
                             bright_black, bright_cyan, bright_green,
                             bright_magenta, bright_red, bright_white,
                             bright_yellow, cyan, green, magenta,
                             red, white, yellow]
        --fg <foreground>    Foreground color. [values: black, blue, bright_blue,
                             bright_black, bright_cyan, bright_green,
                             bright_magenta, bright_red, bright_white,
                             bright_yellow, cyan, green, magenta,
                             red, white, yellow]

ARGS:
    <content>    The content to format.

Install

$ cargo install termformat

Dependencies

~3–4.5MB
~82K SLoC