feat(labels): 支持多路径扫描;docs: 里程碑全量完成状态与变更文档索引
- labels 接受多个 PATH(默认 .),合并去重后扫描 - occlusion-syntax.md §13.1 记录 M0–M10 全部完成,附 11 份变更文档索引 - 全仓校验:98 个文件 check 零诊断(label.* 全为 0,确认无噪音) - cargo test --release 605 passed / 0 failed;0 编译警告
This commit is contained in:
1 parent
34b0911218
commit
307c8efa81
2 files changed
+24
-6
No files matched your search
+9
-4
@@ -119,9 +119,9 @@ enum Commands {
|
||||
},
|
||||
/// Occlusion label queries: pending stubs (built-in words) or keyword search
|
||||
Labels {
|
||||
/// File or directory (recursively scans `*.mq.md`)
|
||||
/// Files or directories (recursively scans `*.mq.md`)
|
||||
#[arg(value_name = "PATH", default_value = ".")]
|
||||
path: PathBuf,
|
||||
paths: Vec<PathBuf>,
|
||||
|
||||
/// Keywords (comma separated). Replaces the built-in pending set.
|
||||
#[arg(long, value_name = "WORDS")]
|
||||
@@ -597,7 +597,7 @@ fn try_main(cli: Cli) -> Result<i32> {
|
||||
Ok(errors.min(1))
|
||||
}
|
||||
Commands::Labels {
|
||||
path,
|
||||
paths,
|
||||
grep,
|
||||
also_builtin,
|
||||
group,
|
||||
@@ -628,7 +628,12 @@ fn try_main(cli: Cli) -> Result<i32> {
|
||||
}
|
||||
}
|
||||
|
||||
let files = collect_mq_files(&path)?;
|
||||
let mut files: Vec<std::path::PathBuf> = Vec::new();
|
||||
for p in &paths {
|
||||
files.extend(collect_mq_files(p)?);
|
||||
}
|
||||
files.sort();
|
||||
files.dedup();
|
||||
let mut rows: Vec<(String, u32, String, String, Vec<String>, bool)> = Vec::new();
|
||||
for f in &files {
|
||||
let module = match marqdo::load::load_module(f) {
|
||||
|
||||
Reference in new issue
Block a user