better labs command alignment#1345
Merged
Merged
Conversation
Entire-Checkpoint: 942f12e5f6c3
Entire-Checkpoint: 11c16f0c4d1f
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the entire labs help-table rendering so command summaries align without relying on a fixed-width invocation column, and adjusts padding to be UTF-8 rune-aware.
Changes:
- Compute the invocation column width dynamically based on the longest invocation in the list.
- Update right-padding logic to measure string length by rune count instead of byte length.
- Add tests asserting summary-column alignment and that the column widens when a longer invocation is present.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| cmd/entire/cli/labs.go | Dynamically computes invocation column width and pads using UTF-8 rune counts. |
| cmd/entire/cli/labs_test.go | Adds alignment/width tests for the rendered experimental command table. |
…r utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test too Entire-Checkpoint: dd5b7466cf9c
pjbgf
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://entire.io/gh/entireio/cli/trails/498
before:
after:
Note
Low Risk
Help text formatting and tests only; no auth, data, or runtime behavior changes.
Overview
The
entire labshelp table no longer uses a fixed 16-character invocation column.renderExperimentalCommandsnow pads each row to the longest invocation in the list, andpadRightmeasures width withutf8.RuneCountInStringinstead of bytelen, so summaries line up correctly for multi-byte text.New tests assert that summary columns align for the real registry and that the column widens when a longer invocation is added.
Reviewed by Cursor Bugbot for commit f872ee4. Configure here.