Skip to main content

read_all_config_versions

Function read_all_config_versions 

Source
pub fn read_all_config_versions(dir: &Path) -> Vec<(String, Option<String>)>
Expand description

契约模块 — 基于 quanttide-devops toolkit 的适配层。

类型定义与 YAML 解析委托给 toolkit,本模块仅保留 CLI 特有的版本检测逻辑。 读取目录下所有已知配置文件的版本号。

use std::path::Path;
use quanttide_devops::contract::read_all_config_versions;
let versions = read_all_config_versions(Path::new("/tmp/nonexistent"));
assert!(versions.is_empty());