Skip to content

better labs command alignment#1345

Merged
Soph merged 3 commits into
mainfrom
soph/labs-command-alignment
Jun 3, 2026
Merged

better labs command alignment#1345
Soph merged 3 commits into
mainfrom
soph/labs-command-alignment

Conversation

@Soph
Copy link
Copy Markdown
Collaborator

@Soph Soph commented Jun 3, 2026

https://entire.io/gh/entireio/cli/trails/498

before:

❯ go run cmd/entire/main.go labs
Labs

These are newer Entire workflows we are actively refining. They are available
to try now, but details may change based on feedback.

Available experimental commands:
  entire review    Run configured review skills against the current branch
  entire investigate Run a multi-agent investigation against a topic, issue, or seed doc
  entire org       Manage Entire organizations (create, list)
  entire project   Manage Entire projects (create, list)
  entire repo      Manage Entire repositories (create, list, get, delete)
  entire grant     Manage access grants and org membership (org, project, repo)

after:

❯ go run cmd/entire/main.go labs
Labs

These are newer Entire workflows we are actively refining. They are available
to try now, but details may change based on feedback.

Available experimental commands:
  entire review      Run configured review skills against the current branch
  entire investigate Run a multi-agent investigation against a topic, issue, or seed doc
  entire org         Manage Entire organizations (create, list)
  entire project     Manage Entire projects (create, list)
  entire repo        Manage Entire repositories (create, list, get, delete)
  entire grant       Manage access grants and org membership (org, project, repo)

Note

Low Risk
Help text formatting and tests only; no auth, data, or runtime behavior changes.

Overview
The entire labs help table no longer uses a fixed 16-character invocation column. renderExperimentalCommands now pads each row to the longest invocation in the list, and padRight measures width with utf8.RuneCountInString instead of byte len, 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.

Soph added 2 commits June 3, 2026 13:35
Entire-Checkpoint: 942f12e5f6c3
Entire-Checkpoint: 11c16f0c4d1f
Copilot AI review requested due to automatic review settings June 3, 2026 11:43
@Soph Soph requested a review from a team as a code owner June 3, 2026 11:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

Comment thread cmd/entire/cli/labs_test.go
…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
@Soph Soph merged commit b123fac into main Jun 3, 2026
9 checks passed
@Soph Soph deleted the soph/labs-command-alignment branch June 3, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants