Repository navigation
feat: Implement plain and table output #142
Copy link
Copy link
Closed
Description
Activity
"table" seems more appropriate 👍
maybe the "plain" setting could print a column layout without decorations and ignoring terminal width, similar to how kubectl prints it
Reacted by Techassi- changed the title
[-]cli output type plain means table[/-][+]feat: Implement `plain` and `table` output[/+]on Nov 21, 2023 - moved this from Next to Development: In Progress in Stackable Engineering
on Dec 14, 2023 I can make it look like this by just disabling the arrangement (ignoring terminal width) and table border characters.
PRODUCT NAME NAMESPACE ENDPOINTS CONDITIONS opa opa default Available, Reconciling, Running superset superset default external-http http://172.18.0.2:30232 Available, Reconciling, Running trino trino default coordinator-metrics 172.18.0.2:30392 Available, Reconciling, Running coordinator-https https://172.18.0.2:30416If the terminal is narrow, the text will wrap like so:
PRODUCT NAME NAMESPACE ENDPOINTS CO NDITIONS opa opa default Av ailable, Reconciling, Running superset superset default external-http http://172.18.0.2:30232 Av ailable, Reconciling, Running trino trino default coordinator-metrics 172.18.0.2:30392 Av ailable, Reconciling, Running coordinator-https https://172.18.0.2:30416I have also removed the padding between the endpoint name and URL in the plain output.
Some of the other commands output a lot of blank lines, so I need to look into the cause of that (it appears to be from descriptions). Some commands don't allow different output (like cache list) so I'm working on that too.
- moved this from Development: In Progress to Development: Done in Stackable Engineering
on Dec 18, 2023
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
I'm wondering if we should rename the output type for
plaintotable.I would expect
plainto print out text with no decorations.I discovered this because I was trying to find a way to print out the stacklet URLs without them breaking when my terminal width is small:
My workaround was to use
--output=yamlto get unbroken clickable links in the terminal.