Debian Codegraph @

cmd/csv2table/README.md

raw
1 ASCII Table Writer Tool
2 =========
3
4 Generate ASCII table on the fly via command line ... Installation is simple as
5
6 #### Install Tool
7
8 go install github.com/olekukonko/tablewriter/cmd/csv2table@latest
9
10
11 #### Usage
12
13 csv2table -f test.csv
14
15 #### Support for Piping
16
17 cat test.csv | csv2table -p=true
18
19 #### Output
20
21 ```
22 +------------+-----------+---------+
23 | FIRST NAME | LAST NAME | SSN |
24 +------------+-----------+---------+
25 | John | Barry | 123456 |
26 | Kathy | Smith | 687987 |
27 | Bob | McCornick | 3979870 |
28 +------------+-----------+---------+
29 ```
30
31 #### Another Piping with Header set to `false`
32
33 echo dance,with,me | csv2table -p=true -h=false
34
35 #### Output
36
37 +-------+------+-----+
38 | dance | with | me |
39 +-------+------+-----+