1 个不稳定版本
使用旧的Rust 2015
0.0.1 | 2017年10月6日 |
---|
#21 在 #reads
8KB
142 行
termformat
$ 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