Running server info on non-server folder creates empty server details
Description
The method in the server service to get a server's info will write empty info if it doesn't exist. This has unintended side-affect of creating empty server details when you run a command such as "server info" in a folder that's never been a server. Don't write the server details to the internal servers.json file unless it actually needs to be saved.
Gliffy Diagrams
Activity
Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.
The method in the server service to get a server's info will write empty info if it doesn't exist. This has unintended side-affect of creating empty server details when you run a command such as "server info" in a folder that's never been a server. Don't write the server details to the internal servers.json file unless it actually needs to be saved.