pimutils / khal

:calendar: CLI calendar application
https://lostpackets.de/khal/
MIT License
2.63k stars 208 forks source link

Clean-up and refactoring #1161

Open geier opened 2 years ago

geier commented 2 years ago

As we are breaking backwards compatibility anyway, we should try to clean the code base.

Some ideas:

see #1160

WhyNotHugo commented 2 years ago

there are lots of different ways to create events at the moment, we should aggregate and only expose as few as possible

Might be best to start listing all those ways. I'm only familiar with khal new and ikhal, n.

geier commented 2 years ago

I mean the internal ways of creating or converting events, you can at the very least do that from CalendarCollection, Event, and some icalendar methods. Which mostly call each other, but IMHO it would be best, if e.g. controller.py only uses CalendarCollection.