feat(migrate): 支持多路径;docs: 体量审计修正两条不成立的判断
- migrate labels 接受多个 PATH(与 labels 一致);全仓干跑幂等: lib/ext/cli/examples/public 均为 0,tests 仅剩刻意保留的 classic 样例 1 处 - 审计修正: * html.rs 皮肤"重复声明基础 CSS" —— 实测 312 vs 128 条规则、选择器零重叠,不成立 * debug_page "复刻 shell" —— 仅 head/favicon 约 10 行相似,它没有 nav/topbar,不成立 * HostFn 五表合一标记为已完成(−404 行) - 结论:可机械消除的重复已清完;剩余体量全是特性实现 全仓校验:63 个文件 check 零诊断(label.* 全 0); cargo test --release 609 passed / 0 failed。" && timeout 300 git push origin main 2>&1 | tail -1
This commit is contained in:
1 parent
b196a44685
commit
86e921e959
2 files changed
+19
-13
No files matched your search
+6
-3
@@ -46,7 +46,7 @@ enum MigrateAction {
|
||||
/// `[键](集合)` → `access(集合, 键)`;`- [项](集合)` → `- [项](遍历 集合 为 项)`
|
||||
Labels {
|
||||
#[arg(value_name = "PATH", default_value = ".")]
|
||||
path: PathBuf,
|
||||
paths: Vec<PathBuf>,
|
||||
/// Actually rewrite files (default: dry run)
|
||||
#[arg(long)]
|
||||
write: bool,
|
||||
@@ -738,8 +738,11 @@ fn try_main(cli: Cli) -> Result<i32> {
|
||||
Ok(0)
|
||||
}
|
||||
Commands::Migrate { action } => match action {
|
||||
MigrateAction::Labels { path, write, json } => {
|
||||
let reports = marqdo::migrate::migrate_path(&path, write)?;
|
||||
MigrateAction::Labels { paths, write, json } => {
|
||||
let mut reports = Vec::new();
|
||||
for p in &paths {
|
||||
reports.extend(marqdo::migrate::migrate_path(p, write)?);
|
||||
}
|
||||
let (mut idx, mut loops, mut applied) = (0usize, 0usize, 0usize);
|
||||
for r in &reports {
|
||||
idx += r.indexes;
|
||||
|
||||
Reference in new issue
Block a user