You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What changes were proposed in this pull request?
Enhanced the Gravitino CLI to support properly formatted output. Fixed
alignment issues in formatted output when it includes Chinese
characters.
The bounding box length calculation is now based on the number of
characters rather than the character display width . The correct output
should look like this(Here are the results of my local tests):
<img width="752" alt="image"
src="https://github.com/user-attachments/assets/ae880b4b-280d-4dc4-9a25-f0deb3867bbc">
Only change the implementation of the TableFormatImpl class, the same
effect is achieved when the `catalog list --output table` command is
supported
### Why are the changes needed?
Fix: #5768
### Does this PR introduce _any_ user-facing change?
NO.
### How was this patch tested?
```shell
gcli catalog details --name <catalog> --metalake <metalake> --output table
gcli metalake details --name <metalake> --output table
gcli metalake list --output table
```
---------
Co-authored-by: pancx <pancx@chinatelecom.cn>
0 commit comments