Skip to content

feat(forge-inspect): add option to wrap tables to terminal width #11138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

0xferrous
Copy link
Contributor

@0xferrous 0xferrous commented Jul 29, 2025

Motivation

Sometimes huge method identifiers(usually because of big structs as arguments) make the table unreadable without wrapping. Wrapping can help with that.

Solution

Add an option --wrap/-w to enable wrapping of content to fit the table width to terminal width. This is a non breaking change since by default it is still unwrapped.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@0xferrous 0xferrous marked this pull request as ready for review July 29, 2025 07:16
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

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

thank you, I think this makes sense - CC @zerosnacks pls share your thoughts
Mind to add an unit test too?

@0xferrous 0xferrous marked this pull request as draft July 30, 2025 09:53
@0xferrous
Copy link
Contributor Author

I looked into adding test for this, but we'd have to run the command via a tty where we can set the terminal width, etc. Is that the way you want to go? @grandizzy

@grandizzy
Copy link
Collaborator

I looked into adding test for this, but we'd have to run the command via a tty where we can set the terminal width, etc. Is that the way you want to go? @grandizzy

Ah, if complex

I looked into adding test for this, but we'd have to run the command via a tty where we can set the terminal width, etc. Is that the way you want to go? @grandizzy

ah, if complex lile this then we could just skip it

@0xferrous 0xferrous force-pushed the feat/comfy-table-wrapping branch from 791381d to 7197ad4 Compare August 9, 2025 08:07
@0xferrous
Copy link
Contributor Author

0xferrous commented Aug 9, 2025

tasked claude with it, TIL there is a script command that starts a tty

@0xferrous 0xferrous marked this pull request as ready for review August 9, 2025 09:00
@0xferrous
Copy link
Contributor Author

can someone run the failed job again, its an unrelated failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants