feat: add a consistent table formatter for tabular output#116
Merged
angeloashmore merged 4 commits intoaa/remote-modelingfrom Apr 10, 2026
Merged
feat: add a consistent table formatter for tabular output#116angeloashmore merged 4 commits intoaa/remote-modelingfrom
angeloashmore merged 4 commits intoaa/remote-modelingfrom
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6f1a889. Configure here.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Resolves: #113
Description
Add a
formatTableutility tosrc/lib/string.tsthat computes column widths and pads cells with consistent spacing. Refactor all commands with tabular output to use it, replacing ad-hocpadEnd()logic and unaligned double-space concatenation.Checklist
Preview
How to QA 1
prismic --helpandprismic <command> --helpto verify aligned columns in help textlocale list,repo list,token list,preview list,webhook list,type list,slice list,docs list) to verify aligned columnstype view,slice view) to verify aligned field tablesNote
Low Risk
Low risk formatting-only change: replaces ad-hoc string concatenation/padding with a shared
formatTablehelper, which could slightly alter CLI text output and snapshot-like tests but not behavior or data handling.Overview
Adds a new
formatTable()utility insrc/lib/string.tsand switches CLI help + multiple list/view commands to use it for consistently aligned, columnar output (including optional headers).Updates command help rendering in
src/lib/command.tsand refactors tabular outputs in commands likedocs list,repo/locale/preview/token/webhook/type/slice list, andtype/slice view; associated tests were loosened to match whitespace-aligned table output rather than exact strings.Reviewed by Cursor Bugbot for commit 729b9ba. Bugbot is set up for automated code reviews on this repo. Configure here.
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩