bndr / bndr/gotabulate

support option to remove space line between each data row

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
335
Forks
31
PR merge metrics
No merged PRs in 30d

Description

When we use gotabulate 'Simple Table' in our container image build project [isula-build](https://github.com/openeuler-mirror/isula-build) to list images managerd by the daemon, the space line between each item is too sparse. This lead to a full screen page list fewer items as follows:
```
isula-build ctr-img images
---------------------------------------------- ----------- ----------------- ------------------------ ------------
REPOSITORY TAG IMAGE ID CREATED SIZE
---------------------------------------------- ----------- ----------------- ------------------------ ------------
23e3d8bb12ff 2020-11-24 08:11:15 1.45 MB

lzk latest f19434180a1c 2020-11-18 10:54:24 1.44 MB

b6b74a847ff3 2020-11-18 10:54:19 1.44 MB
---------------------------------------------- ----------- ----------------- ------------------------ ------------
```

If there exist an option which can control remove those space line, more items can be display and I think also useful in other scenarios. The result in our project can be:
```
isula-build ctr-img images
---------------------------------------------- ----------- ----------------- ------------------------ ------------
REPOSITORY TAG IMAGE ID CREATED SIZE
---------------------------------------------- ----------- ----------------- ------------------------ ------------
23e3d8bb12ff 2020-11-24 08:11:15 1.45 MB
lzk latest f19434180a1c 2020-11-18 10:54:24 1.44 MB
b6b74a847ff3 2020-11-18 10:54:19 1.44 MB
---------------------------------------------- ----------- ----------------- ------------------------ ------------
```
or
```
isula-build ctr-img images
+----------------------------------------------+-----------+-----------------+------------------------+------------+
| REPOSITORY | TAG | IMAGE ID | CREATED | SIZE |
+==============================================+===========+=================+========================+============+
| | | 23e3d8bb12ff | 2020-11-24 08:11:15 | 1.45 MB |
| | | 71173ee82707 | 2020-11-24 08:09:43 | 1.44 MB |
| | | 5d5db30060ff | 2020-11-24 08:05:46 | 1.44 MB |
| | | bde817fd2249 | 2020-11-20 11:56:34 | 1.44 MB |
| | | 034e08b6cade | 2020-11-20 11:53:06 | 1.44 MB |
| lzk | latest | f19434180a1c | 2020-11-18 10:54:24 | 1.44 MB |
| | | b6b74a847ff3 | 2020-11-18 10:54:19 | 1.44 MB |
| | | 174ad5b1cf49 | 2020-11-16 10:06:29 | 1.44 MB |
| | | f28a219985c1 | 2020-11-16 08:20:17 | 1.44 MB |
+----------------------------------------------+-----------+-----------------+------------------------+------------+
```
For above use it looks more reasonable. In the end, thanks for this project.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.