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

app termformat

一个简单的命令行终端文本格式化工具。从参数或stdin读取。

1 个不稳定版本

使用旧的Rust 2015

0.0.1 2017年10月6日

#21#reads

MIT 协议

8KB
142

termformat

Build Status Crates.io

$ termformat --help
termformat 0.0.1
Andrew Hobden <[email protected]>
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.

安装

$ cargo install termformat

依赖

~3.5–4.5MB
~83K SLoC