blacktop / lporg

Organize Your macOS Launchpad Apps
MIT License
270 stars 22 forks source link

`lporg check` command to compare #33

Closed 5ouma closed 1 year ago

5ouma commented 1 year ago

I want to compare the structure from the save command and config file. I tried to add this command, but the structures of output from the save and load commands. After getting together these structures, it will be possible to compare them with the reflect.DeepEqual() function.

blacktop commented 1 year ago

what are you 'check'-ing for with this comparison?

5ouma commented 1 year ago

I want to compare with the current status and launchpad.yaml. In other words, to check whether I need to run lporg load.

blacktop commented 1 year ago

I tried to implement this, however, due to the fact that the ordering isn't SUPER consistent due to the Apple DB triggers and Dock app fighting me, the config ALWAYS differs from the database 😩 If we can figure out OR if my latest release has worked. Then we can revisit this, but for now I'm closing.

5ouma commented 1 year ago

How about comparing the YAML files that are specified and generated?