Fixes default HOST to remove the schema from config

The schema now defaults to http if none is defined. Also improves some of the cli docstrings
This commit is contained in:
Sergi Delgado Segura
2020-03-23 15:09:24 +01:00
parent 02eefd5807
commit f5edaf1bf0
4 changed files with 79 additions and 59 deletions

View File

@@ -6,7 +6,7 @@ LOG_PREFIX = "cli"
# Load config fields
DEFAULT_CONF = {
"TEOS_SERVER": {"value": "http://localhost", "type": str},
"TEOS_SERVER": {"value": "localhost", "type": str},
"TEOS_PORT": {"value": 9814, "type": int},
"LOG_FILE": {"value": "teos_cli.log", "type": str, "path": True},
"APPOINTMENTS_FOLDER_NAME": {"value": "appointment_receipts", "type": str, "path": True},