From e42ae7186222519ce1a579be53372effb1a731cd Mon Sep 17 00:00:00 2001 From: furtest Date: Sat, 3 Jan 2026 17:10:06 +0100 Subject: [PATCH] defaults : Create defaults.py Creates the file defaults.py this is used to store the defaults and easily include them into the config. Changing defaults is thus possible without touching the code leaving less room for errors. --- src/unisync/defaults.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/unisync/defaults.py diff --git a/src/unisync/defaults.py b/src/unisync/defaults.py new file mode 100644 index 0000000..3afa0d6 --- /dev/null +++ b/src/unisync/defaults.py @@ -0,0 +1,18 @@ +# copyright (c) 2026 paul retourné +# spdx-license-identifier: gpl-3.0-or-later + +from pathlib import Path + +# Commented out values are part of the config but are required so there is no defaults. +# This allows this file to be a list of all the config options. + +# DEFAULT_SERVER_USER: str = "" +DEFAULT_SERVER_SSHARGS: str = "" +DEFAULT_SERVER_HOSTNAME: str = "" +DEFAULT_SERVER_IP: str = "" +DEFAULT_SERVER_PORT: int = 22 + +DEFAULT_ROOTS_LOCAL: str = str(Path("~/files").expanduser()) +# DEFAULT_ROOTS_REMOTE: str = "" + +DEFAULT_MISC_CACHE_DIR_PATH: Path = Path("~/.unisync").expanduser()