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

Add print_with_writer to PrettyPrint #3070

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

Conversation

kojix2
Copy link

@kojix2 kojix2 commented Aug 14, 2024

Hi

Thank you for making such a great tool. bat is one of the commands I use most often in my terminal.

This pull request is not about using bat as a command-line tool, but about using it as a library with PrettyPrinter.

Could you please add a way to output to a custom writer, like a String or a file, using PrettyPrinter?
I suggest adding a print_with_writer function that lets users choose where the output goes.

This change would make PrettyPrinter more flexible and useful.
Thank you for considering my request.


I am working on libraries like bat-c and wombat that use this function.

@kojix2
Copy link
Author

kojix2 commented Oct 23, 2024

Updated CHANGELOG.md.

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.

1 participant