ServerSync

ServerSync

48.5k Downloads

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

adaliszk opened this issue ยท 2 comments

commented

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:

  • Serversync Version: 4.2.0
  • Minecraft Version: 1.20.1
commented

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?

commented

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 :)