Skip to content

fix: wrap post-install message text - #46

Merged
zeroshade merged 5 commits into
mainfrom
wrap-output
Sep 17, 2025
Merged

zeroshade merged 5 commits into
mainfrom
wrap-output

Conversation

@zeroshade

@zeroshade zeroshade commented Sep 17, 2025 •

Copy link
Copy Markdown
Member

closes #19

@amoeba

amoeba commented Sep 17, 2025

Copy link
Copy Markdown
Member

I bet this fixes the direct issue but I think there's a fundamental issue we might want to address since this happens elsewhere if you look closely. See how this cuts off?

Screenshot 2025-09-17 at 2 19 01 PM

@zeroshade

Copy link
Copy Markdown
Member Author

Hmm, good point. Let me see if there's any general option I can pass to bubbletea to handle this

@amoeba

amoeba commented Sep 17, 2025

Copy link
Copy Markdown
Member

I noticed that the charmbracelet team has an example where we add a "finalOutput" member to the cmd struct (alongside status) and then have the root cmd print the finalOutput. I started on this in amoeba@58d0803.

@amoeba

amoeba commented Sep 17, 2025

Copy link
Copy Markdown
Member

@zeroshade

Copy link
Copy Markdown
Member Author

Ah, you mean shift the output for when we're done to after the return instead of as part of the View method?

@amoeba

amoeba commented Sep 17, 2025

Copy link
Copy Markdown
Member

Yep. It cleanly separates the output into two categories. Requires quite a bit of change I think.

@amoeba amoeba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works well! Thanks.

@zeroshade
zeroshade merged commit f926149 into main Sep 17, 2025
@zeroshade
zeroshade deleted the wrap-output branch September 17, 2025 23:31
zeroshade added a commit that referenced this pull request Apr 17, 2026

This branch was previously deployed

1 inactive deployment
snapshot — 6f0672e7 Deployed Sep 17, 2025 by zeroshade
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.

Fix issue with truncated post-install message

2 participants