superzanti / ServerSync

Sync files between client and server for Minecraft Forge
GNU General Public License v3.0
160 stars 26 forks source link

Add check or dry-run command to verify if there is anything to sync #308

Open adaliszk opened 12 months ago

adaliszk commented 12 months ago

First off, thank you very much for doing this excellent utility!

As a server owner who tries to add a simple mod for its users to click and sync mods, I want to do a preflight check where the users would get a confirmation if they need to close Minecraft or not. For this, we need a dry-run check to see if any work needs to be done. Ideally, this would be a new flag, like --check which would verify the files to be synced and return an OK or ERROR status code to any CLI executor.

Context:

rheimus commented 11 months ago

This would presumably be the client side doing a check against the server?

Would this also log some sort of list of missing files along with exiting non zero?

adaliszk commented 11 months ago

Ideally it would be nice to log out the result, though for that I wanted to open a new ticket to add a --json flag to convert the output so that inter-process calls would able to efficiently communicate :)