GaretJax / django-click

Write Django management command using the click CLI library
MIT License
250 stars 20 forks source link

Typer Integration #36

Open Benoss opened 3 years ago

Benoss commented 3 years ago

I am usually using Typer on top of Click for command line. This gives a nice way to use Type hints to define variables. https://typer.tiangolo.com

How complex do you think it would be to have a Typer adopter for django-click?

jefftriplett commented 2 years ago

I think there was also some chatter on Twitter about possibly adding Rich support. I stumbled on the rich-click project and I noticed that it adds both rich library support to click as well as they sneak in support for typer.

I wonder if this would help open the door to optionally add both to the project?

https://github.com/ewels/rich-click#typer-support

Benoss commented 2 years ago

Yeah I think that would be awesome 2 birds one stone.

FlipperPA commented 2 years ago

Adding both would be fantastic, as long as they don't become requirements and are optional. Are you interested in working on a PR, @Benoss? Thanks for being in touch!

Benoss commented 2 years ago

I had a quick look and it is a bit more complicated that what I thought to do the integration and could not pull it off yesterday I won't be able to work on a PR in the next future as I am going to travel for a few months :)