Skip to content
New issue

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

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

Already on GitHub? # to your account

How to use as a module ? #3109

Open
Aviksaikat opened this issue Oct 18, 2024 · 2 comments
Open

How to use as a module ? #3109

Aviksaikat opened this issue Oct 18, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Aviksaikat
Copy link

How can we use bat as a module and use it for colourful logging and terminal outputs from rust programs?

@Aviksaikat Aviksaikat added the question Further information is requested label Oct 18, 2024
@keith-hall
Copy link
Collaborator

https://github.com/sharkdp/bat?tab=readme-ov-file#development

If you want to build an application that uses bats pretty-printing features as a library, check out the the API documentation. Note that you have to use either regex-onig or regex-fancy as a feature when you depend on bat as a library.

@Aviksaikat
Copy link
Author

Do we have to create a new instance of PrettyPrinter every time we want to print out something?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants