Skip to content
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

[wasm-metadata] pretty-print cli output #1946

Merged

Conversation

yoshuawuyts
Copy link
Member

Closes #1923. While this doesn't quite deliver on the vision I sketched in the issue, I believe it's a meaningful step up from the status quo. I've also filed Nukesor/comfy-table#160, which if accepted will hopefully allow us to more closely match duf's output.

I'm not quite sure what the process for introducing new dependencies here is. To pretty-print tables, we're going to need some printing library - and comfy-table seemed like a reasonable choice. I looked at the deps, and nothing particularly stood out to me as a potential problem?

Thanks!

Screenshot

This is what the output currently looks like. I might do another pass to add colors, etc - but this seemed like a good starting point.

Screenshot 2024-12-10 at 03 08 38

@yoshuawuyts yoshuawuyts force-pushed the metadata-pretty-print-table branch from 9ae4ab4 to 9926452 Compare December 10, 2024 16:06
@yoshuawuyts
Copy link
Member Author

Ok, this should be good to review now!

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me! I think it's fine to pull in deps like this for the CLI yeah.

@yoshuawuyts
Copy link
Member Author

yoshuawuyts commented Dec 10, 2024

updated with feedback from review!

@alexcrichton alexcrichton added this pull request to the merge queue Dec 10, 2024
Merged via the queue into bytecodealliance:main with commit de978e1 Dec 10, 2024
30 checks passed
@yoshuawuyts yoshuawuyts mentioned this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wasm-metadata] redesign the human-readable terminal output
2 participants