pluGET
pluGET copied to clipboard
Add support for multiple servers
This adds support for multiple servers with a switch server command
server [servername]
As well as a new config file config.yaml, similar to what was proposed in #58
Servers:
Srv1:
Connection: local
ServerRootPath: C:/Users/USER/Desktop/server
PluginFolderPath: C:/Users/USER/Desktop/server/plugins
SeperateDownloadPath: false
Srv2:
Connection: sftp
ServerRootPath: /
PluginFolderPath: /plugins
SeperateDownloadPath: /plugins/updated
Server: mc.example.com
Username: joe
Password: pass
Port: 22
Srv3:
Connection: ftp
ServerRootPath: /
PluginFolderPath: /plugins
SeperateDownloadPath: false
Server: mc.example.com
Username: joe
Password: pass
Port: 21
AnotherServerName:
Connection: local
ServerRootPath: /srv/mc
PluginFolderPath: /srv/mc/plugins
SeperateDownloadPath: /srv/mc/plugins/downloaded
# more can be added
Hey @Sowgro,
thank you so much for your PR. :)
This is a really good functionality and I think the config just looks so much better imho. 😃
I reviewed your PR and added comments. It is really good with just one bug with the "port"
which needs to be changed and some smaller code cleanup.
Thanks again for your hard work and sorry for the late response.
Have a good day! 👋
I am glad you got a chance to look at this. I will look through your comments later this week. This was the first time I ever wrote code in python, so my apologies for any weird formatting.