bndr / bndr/gotabulate

support option to remove space line between each data row

Aperta
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
335
Fork
31
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.