-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add arbitrary separators to tables #97
Comments
I think I understand your ask here, but can you share an example of how you'd like the output to look like? |
Never mind. I think this can be done. Will look into it. |
Something like this:
Marking the line between Jon and Tyrion as separator with some method call |
Hey @guumaster, I've added support for appending Separator rows at will. However, please take a look at the caveats listed in the PR @ #101. The PR's description also contains sample code and output. Lemme know if this works, and if you need anything else. Hope this helps! 👍 |
This is great. Thank you very much. 👍 |
Is your feature request related to a problem? Please describe.
I would like to have the option to add a table row that is printed as a separator row. Like what happens with header and footer, but some way of programmatically add a new separator between any rows.
Describe the solution you'd like
Something like
AddSeparator()
to mark a line separator between rows.Describe alternatives you've considered
Additional context
I'm trying to migrate my project hostctl to use
go-pretty
but this feature is needed to split content of each profile on the printed table.The text was updated successfully, but these errors were encountered: