pub fn read_config_versions(dir: &Path) -> Vec<(String, Option<String>)>Expand description
读取目录下所有已知配置文件的版本号。
返回 [(文件名, Option<版本号>)],文件不存在则跳过。
use std::path::Path;
use quanttide_devops::source::config_file::read_config_versions;
let versions = read_config_versions(Path::new("/tmp/nonexistent"));
assert!(versions.is_empty());