createTable customisation don't align output #16

Closed
opened 2021-07-27 19:35:17 +00:00 by decentral1se · 6 comments
Owner
➜  go-abra (main) ✔ ./abra app ls -s utaw.autonomic.zone -S
SERVER             	TYPE     	DOMAIN                     	STATUS   
  utaw.autonomic.zone  keycloak   login.utaw.autonomic.zone    deployed  
                       nextcloud  cloud.utaw.autonomic.zone    deployed  
                       traefik    traefik.utaw.autonomic.zone  deployed

The default layout does align:

➜  go-abra (main) ✗ ./abra app ls -s utaw.autonomic.zone -S
+---------------------+-----------+-----------------------------+----------+
| SERVER              | TYPE      | DOMAIN                      | STATUS   |
+---------------------+-----------+-----------------------------+----------+
| utaw.autonomic.zone | keycloak  | login.utaw.autonomic.zone   | deployed |
|                     | nextcloud | cloud.utaw.autonomic.zone   | deployed |
|                     | traefik   | traefik.utaw.autonomic.zone | deployed |
+---------------------+-----------+-----------------------------+----------+

Not sure what needs to be tweaked in 0e75350985/cli/formatter.go (L34-L52)?

``` ➜ go-abra (main) ✔ ./abra app ls -s utaw.autonomic.zone -S SERVER TYPE DOMAIN STATUS utaw.autonomic.zone keycloak login.utaw.autonomic.zone deployed nextcloud cloud.utaw.autonomic.zone deployed traefik traefik.utaw.autonomic.zone deployed ``` The default layout does align: ``` ➜ go-abra (main) ✗ ./abra app ls -s utaw.autonomic.zone -S +---------------------+-----------+-----------------------------+----------+ | SERVER | TYPE | DOMAIN | STATUS | +---------------------+-----------+-----------------------------+----------+ | utaw.autonomic.zone | keycloak | login.utaw.autonomic.zone | deployed | | | nextcloud | cloud.utaw.autonomic.zone | deployed | | | traefik | traefik.utaw.autonomic.zone | deployed | +---------------------+-----------+-----------------------------+----------+ ``` Not sure what needs to be tweaked in https://git.coopcloud.tech/coop-cloud/go-abra/src/commit/0e75350985522ae68bc322bb6426e7da7a6952dc/cli/formatter.go#L34-L52?
decentral1se added the
bug
label 2021-07-27 19:35:17 +00:00

Ill be moving to tabby on this so this is due to change. Or at least another formatter.

Ill be moving to tabby on this so this is due to change. Or at least another formatter.
Author
Owner

Why? Seems fine to me, we can just use the default again? I'd like to keep the cell merging in whatever library we use, that really helps the layout for large lists like in 805defec09/cli/app.go (L216).

Why? Seems fine to me, we can just use the default again? I'd like to keep the cell merging in whatever library we use, that really helps the layout for large lists like in https://git.coopcloud.tech/coop-cloud/go-abra/src/commit/805defec094078aeb3ce7edc5c0cfdc6636e3c79/cli/app.go#L216.

never used the default as I thought it was a bit too busy. I'd rather something more sinple. Plus there is other libraries to look at. I am not a fan of the way the table needs to be created. This was always just a patch work to fix down the line.

never used the default as I thought it was a bit too busy. I'd rather something more sinple. Plus there is other libraries to look at. I am not a fan of the way the table needs to be created. This was always just a patch work to fix down the line.

ok so I think we either go with the default table if that works nad we can mess with it so it is something we like or move to something like https://github.com/jedib0t/go-pretty.

ok so I think we either go with the default table if that works nad we can mess with it so it is something we like or move to something like https://github.com/jedib0t/go-pretty.
Author
Owner

Dayum go-pretty has another thing I really needed, this kind of goroutine suporting progress bar loading stuff. That would be amazing to have for usability purposes when we're querying multiple remote contexts. I'd be down for switching for that. It also has merging I see. Nice!

Dayum `go-pretty` has another thing I really needed, this kind of goroutine suporting progress bar loading stuff. That would be amazing to have for usability purposes when we're querying multiple remote contexts. I'd be down for switching for that. It also has merging I see. Nice!
decentral1se added this to the (deleted) milestone 2021-09-04 21:06:25 +00:00
decentral1se self-assigned this 2021-09-06 15:36:24 +00:00
Author
Owner

Lazily just re-enabled the default as I couldn't figure out how to keep the more minimal styles and have alignment (which I think is important for understanding the often complex output listing). go-pretty migration coming one day ™️

Lazily just re-enabled the default as I couldn't figure out how to keep the more minimal styles and have alignment (which I think is important for understanding the often complex output listing). `go-pretty` migration coming one day :tm:
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#16
No description provided.