src/bin/proxmox-backup-manager.rs: add completion helper for gc-schedule

This commit is contained in:
Dietmar Maurer
2020-05-20 09:41:58 +02:00
parent 8545480a31
commit dd7a7eae8f
2 changed files with 8 additions and 1 deletions

View File

@ -123,3 +123,9 @@ pub fn complete_acl_path(_arg: &str, _param: &HashMap<String, String>) -> Vec<St
list
}
pub fn complete_calendar_event(_arg: &str, _param: &HashMap<String, String>) -> Vec<String> {
// just give some hints about possible values
["minutely", "hourly", "daily", "mon..fri", "0:0"]
.iter().map(|s| String::from(*s)).collect()
}