6 个版本 (破坏性更新)
| 0.7.0 | 2022年3月28日 |
|---|---|
| 0.6.0 | 2022年3月26日 |
| 0.5.1 | 2022年3月26日 |
| 0.4.0 | 2022年3月26日 |
| 0.3.0 | 2022年3月25日 |
#19 in #pretty-printing
210KB
417 行
tapr
tapr 是一个表格美化打印工具。通过调整列宽,尽可能地将 CSV 或 TSV 文件打印得更加美观。
截图

安装
cargo install tapr
命令行界面
USAGE:
tapr [FLAGS] [OPTIONS] <input>
FLAGS:
-c, --csv Force treats input file as CSV
-h, --help Prints help information
-H, --header Prints first line as a header
-n, --line-number Prints line number
-t, --tsv Force treats input file as TSV
-V, --version Prints version information
OPTIONS:
-s, --line-sampling <num> Sampling size of lines to determine width of each column. Specify `0` for +inf
[default: 100]
ARGS:
<input> Input file. Specify `-` to read from the standard input
要将 tapr 输出到 less,不要忘记为 less 指定 --raw-control-chars 选项
...(some command)... | tapr - | less -R
许可证
MIT/Apache-2.0
依赖项
~3.5–5MB
~95K SLoC