ewels / rich-click

Format click help output nicely with rich.
https://ewels.github.io/rich-click/
MIT License
630 stars 36 forks source link

[Draft] Use dicts to write configs #149

Closed dwreeves closed 11 months ago

dwreeves commented 11 months ago

Main changes:

Misc. changes:

dwreeves commented 11 months ago

I'm likely going to keep this open for a while. I want to get down a sensible and flexible system for resolving the config, aimed at:

  1. Zero difference to the vast majority of users who just want pretty outputs without much effort.
  2. Lots of convenience, sensibility, zero astonishment for users looking for lots of customization.

And I'd rather do too few changes and too few API guarantees than too many.

Also, see #134.

dwreeves commented 11 months ago

I think I am starting to settle on this configuration logic. I think it makes sense and is the least bad / least "astonishing" of all other alternatives. https://github.com/ewels/rich-click/issues/134#issuecomment-1872386532