dunk icon indicating copy to clipboard operation
dunk copied to clipboard

Refactor for use in other Python tools?

Open ewels opened this issue 3 years ago • 2 comments

This tool looks amazing 🤩

Any chance of a slight refactor so that I can import it into my tool and use it to render diffs that I already have as strings? At the moment it looks like the stdin is hard-coded..

ewels avatar Apr 03 '22 15:04 ewels

Thanks! 😄

Yes, I'll be refactoring (probably quite extensively) to enable support for things like this after I've finalised the output format and handled some edge cases and missing output.

darrenburns avatar Apr 03 '22 15:04 darrenburns

Excellent stuff! 👏🏻 Getting my requests in early! 😅 Let me know if a PR would be useful (I guess not at this stage assuming you have big plans already).

I've used Delta for a while, but never been able to use it within tools as it's not a Python package. Excited to have a play with Dunk 😁

ewels avatar Apr 03 '22 16:04 ewels