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:
@@ -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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
@@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user