depend on proxmox 0.10.5
This commit is contained in:
parent
67cc79ec52
commit
3084232cb5
@ -48,7 +48,7 @@ percent-encoding = "2.1"
|
|||||||
pin-utils = "0.1.0"
|
pin-utils = "0.1.0"
|
||||||
pin-project = "1.0"
|
pin-project = "1.0"
|
||||||
pathpatterns = "0.1.2"
|
pathpatterns = "0.1.2"
|
||||||
proxmox = { version = "0.10.4", features = [ "sortable-macro", "api-macro", "websocket" ] }
|
proxmox = { version = "0.10.5", features = [ "sortable-macro", "api-macro", "websocket" ] }
|
||||||
#proxmox = { git = "git://git.proxmox.com/git/proxmox", version = "0.1.2", features = [ "sortable-macro", "api-macro" ] }
|
#proxmox = { git = "git://git.proxmox.com/git/proxmox", version = "0.1.2", features = [ "sortable-macro", "api-macro" ] }
|
||||||
#proxmox = { path = "../proxmox/proxmox", features = [ "sortable-macro", "api-macro", "websocket" ] }
|
#proxmox = { path = "../proxmox/proxmox", features = [ "sortable-macro", "api-macro", "websocket" ] }
|
||||||
proxmox-fuse = "0.1.1"
|
proxmox-fuse = "0.1.1"
|
||||||
|
@ -9,31 +9,6 @@ use proxmox_backup::{
|
|||||||
config,
|
config,
|
||||||
};
|
};
|
||||||
|
|
||||||
fn dump_section_config(config: &SectionConfig) -> String {
|
|
||||||
|
|
||||||
let mut res = String::new();
|
|
||||||
|
|
||||||
let plugin_count = config.plugins().len();
|
|
||||||
|
|
||||||
for plugin in config.plugins().values() {
|
|
||||||
|
|
||||||
let name = plugin.type_name();
|
|
||||||
let properties = plugin.properties();
|
|
||||||
let skip = match plugin.id_property() {
|
|
||||||
Some(id) => vec![id],
|
|
||||||
None => Vec::new(),
|
|
||||||
};
|
|
||||||
|
|
||||||
if plugin_count > 1 {
|
|
||||||
res.push_str(&format!("\n**Section type** \'``{}``\'\n\n", name));
|
|
||||||
}
|
|
||||||
|
|
||||||
res.push_str(&dump_api_parameters(properties, "", ParameterDisplayStyle::Config, &skip));
|
|
||||||
}
|
|
||||||
|
|
||||||
res
|
|
||||||
}
|
|
||||||
|
|
||||||
fn get_args() -> (String, Vec<String>) {
|
fn get_args() -> (String, Vec<String>) {
|
||||||
|
|
||||||
let mut args = std::env::args();
|
let mut args = std::env::args();
|
||||||
|
Loading…
Reference in New Issue
Block a user