Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Fork output writer to avoid bold table headers #2841

Merged

Conversation

stmcginnis
Copy link
Contributor

We had been using the OutputWriter from tanzu-framework. In the release
we are using, the header values for table columns in that version would
bold the text, resulting in garbage characters when doing things like
watch to wait for conditions in the output. This has since been fixed,
but is not available in a tanzu-framework release we can use yet.

Until we are able to bump up to a version of tanzu-framework that has
the fix, this temporarily duplicates that code locally. This can be
removed in a future release.

@stmcginnis stmcginnis requested a review from a team as a code owner January 13, 2022 17:09
@joshrosso
Copy link
Contributor

ls no longer produces bold column headers ✔️

watch ./tanzu-unmanaged-cluster-linux_amd64 ls
watch 

Every 2.0s: ./tanzu-unmanaged-cluster-linux_amd64 ls                                         u: Thu Jan 13 17:57:00 2022

  NAME   PROVIDER
  doggo  kind

Copy link
Contributor

@joshrosso joshrosso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we move this to the internal package, requested here, this is ready to merge!

@stmcginnis stmcginnis force-pushed the unmanaged-outputwriter branch 2 times, most recently from 52b7b80 to d26dc9d Compare January 13, 2022 20:20
Copy link
Contributor

@joshrosso joshrosso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for moving the package. Re-compiled off d26dc9d6e770b3a90bdb023f120dd1b3d7076a52 and verified the bold is fixed!

image

@joshrosso
Copy link
Contributor

@stmcginnis would you fix the small merge conflict then self-merge?

thanks!

We had been using the OutputWriter from tanzu-framework. In the release
we are using, the header values for table columns in that version would
bold the text, resulting in garbage characters when doing things like
`watch` to wait for conditions in the output. This has since been fixed,
but is not available in a tanzu-framework release we can use yet.

Until we are able to bump up to a version of tanzu-framework that has
the fix, this temporarily duplicates that code locally. This can be
removed in a future release.

Signed-off-by: Sean McGinnis <[email protected]>
@stmcginnis stmcginnis force-pushed the unmanaged-outputwriter branch from d26dc9d to 5087cfe Compare January 13, 2022 23:06
@stmcginnis stmcginnis merged commit 4a25b50 into vmware-tanzu:standalone-overhaul Jan 13, 2022
@stmcginnis stmcginnis deleted the unmanaged-outputwriter branch January 13, 2022 23:08
joshrosso pushed a commit that referenced this pull request Jan 18, 2022
We had been using the OutputWriter from tanzu-framework. In the release
we are using, the header values for table columns in that version would
bold the text, resulting in garbage characters when doing things like
`watch` to wait for conditions in the output. This has since been fixed,
but is not available in a tanzu-framework release we can use yet.

Until we are able to bump up to a version of tanzu-framework that has
the fix, this temporarily duplicates that code locally. This can be
removed in a future release.

Signed-off-by: Sean McGinnis <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants