mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-16 00:53:47 -05:00
Add servers option (no-op at the moment)
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -44,6 +44,7 @@ pub struct Config {
|
||||
pub images: ImageConfig,
|
||||
pub theme: Theme,
|
||||
pub socket: Option<String>,
|
||||
pub servers: Vec<String>,
|
||||
#[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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user