m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-16 09:03:46 -05:00

Add servers option (no-op at the moment)

This commit is contained in:
Sergio
2024-12-07 17:18:36 +02:00
parent 622b156eed
commit eadda5f776
2 changed files with 14 additions and 1 deletions

View File

@@ -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.", "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", "type": "string",
"minLength": 1 "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"
]
} }

View File

@@ -44,6 +44,7 @@ pub struct Config {
pub images: ImageConfig, pub images: ImageConfig,
pub theme: Theme, pub theme: Theme,
pub socket: Option<String>, pub socket: Option<String>,
pub servers: Vec<String>,
#[serde(skip_deserializing)] #[serde(skip_deserializing)]
pub debug: bool, pub debug: bool,
} }
@@ -57,6 +58,7 @@ impl Config {
images: ImageConfig::default(), images: ImageConfig::default(),
theme: Theme::Default, theme: Theme::Default,
socket: None, socket: None,
servers: Vec::new(),
debug: false, debug: false,
} }
} }