mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-30 08:36:30 +00:00
Neil Hanlon
e7b15b3cde
given a task ID, fetch its details and display them to a table or to json with `-o json`. Table view also adds a calculated task duration and can optionally include the submitter information as well as a link to logs for the task. * --no-color - to skip colorizing output * --L|--logs - include column with link to logs * --submitter - show submitter * --no-wait - control whether to wait until a task completes to output (table mode) |
||
---|---|---|
.. | ||
BUILD.bazel | ||
csv2table.go | ||
README.md |
ASCII Table Writer Tool
Generate ASCII table on the fly via command line ... Installation is simple as
Get Tool
go get github.com/olekukonko/tablewriter/csv2table
Install Tool
go install github.com/olekukonko/tablewriter/csv2table
Usage
csv2table -f test.csv
Support for Piping
cat test.csv | csv2table -p=true
Output
+------------+-----------+---------+
| FIRST NAME | LAST NAME | SSN |
+------------+-----------+---------+
| John | Barry | 123456 |
| Kathy | Smith | 687987 |
| Bob | McCornick | 3979870 |
+------------+-----------+---------+
Another Piping with Header set to false
echo dance,with,me | csv2table -p=true -h=false
Output
+-------+------+-----+
| dance | with | me |
+-------+------+-----+