From eadda5f7760929fcaa150e70f51297724132aae7 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Sat, 7 Dec 2024 17:18:36 +0200 Subject: [PATCH] Add servers option (no-op at the moment) --- cup.schema.json | 13 ++++++++++++- src/config.rs | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cup.schema.json b/cup.schema.json index ca64eb1..b9f993a 100644 --- a/cup.schema.json +++ b/cup.schema.json @@ -65,7 +65,18 @@ "description": "The path to the unix socket you would like Cup to use for communication with the Docker daemon. Useful if you're trying to use Cup with Podman.", "type": "string", "minLength": 1 + }, + "servers": { + "type": "array", + "description": "Additional servers to connect to and fetch update data from", + "minItems": 1, + "items": { + "type": "string", + "minLength": 1 + } } }, - "required": ["version"] + "required": [ + "version" + ] } \ No newline at end of file diff --git a/src/config.rs b/src/config.rs index 6c8e6ab..c5a4947 100644 --- a/src/config.rs +++ b/src/config.rs @@ -44,6 +44,7 @@ pub struct Config { pub images: ImageConfig, pub theme: Theme, pub socket: Option, + pub servers: Vec, #[serde(skip_deserializing)] pub debug: bool, } @@ -57,6 +58,7 @@ impl Config { images: ImageConfig::default(), theme: Theme::Default, socket: None, + servers: Vec::new(), debug: false, } }