tractr / directus-sync

A CLI tool for synchronizing the schema and configuration of Directus across various environments.
GNU General Public License v3.0
254 stars 10 forks source link

Request: Beautify / simplify logs #115

Closed Dominic-Marcelino closed 1 week ago

Dominic-Marcelino commented 2 weeks ago

Is your feature request related to a problem? Please describe. On diff and push the logs are cluttered with a lot of entries without changes (e.g Created 0 items, To create: 0 item(s), Unchanged: 7 item(s)). This makes it pretty hard to read and find the real changes.

Describe the solution you'd like In order to get a better overview about the changes I suggest to only log the entries with actual changes (e.g To delete: 1 item(s))

Describe alternatives you've considered

EdouardDem commented 1 week ago

Hi @Dominic-Marcelino. This is related to this issue #71 There may be several ways to display the logs, depending on the use case. I think the most versatile approach is to add a hook system to the logs, so that users can change the display and content as they wish. What do you think?

Dominic-Marcelino commented 1 week ago

This is related to this issue #71

Indeed, that's an duplicate. Using a comparable output as directus sounds like a good solution.

I think a custom hook would be a bit over the top 🤔