Crates.io | mdtg |
lib.rs | mdtg |
version | 1.0.1 |
source | src |
created_at | 2019-05-24 10:44:50.398292 |
updated_at | 2019-08-29 01:07:32.669014 |
description | Quickly generate markdown tables in your terminal using a simplistic specification |
homepage | https://github.com/lukakerr/mdtg |
repository | https://github.com/lukakerr/mdtg |
max_upload_size | |
id | 136583 |
size | 15,914 |
mdtg
Quickly generate markdown tables in your terminal using a simplistic specification.
crates.io
$ cargo install mdtg
$ git clone https://github.com/lukakerr/mdtg.git
$ cargo run
# Create a 4 by 4 table, without spaces in argument
$ mdtg 4x4
| | | | |
| ------ | ------ | ------ | ------ |
| | | | |
| | | | |
| | | | |
| | | | |
# Create a 3 by 5 table, with left, center and right aligned columns
$ mdtg "3lcr x 5"
| | | |
| ------ |:------:| ------:|
| | | |
| | | |
| | | |
| | | |
| | | |
Spec -> Column Cross Row
Column -> Num Positions
Row -> Num
Num -> Digit | Digit Num
Digit -> [0-9]
Cross -> "x"
Positions -> Position | Position Positions
Position -> "l" | "r" | "c"