refactor: close resource request dispatch and enforce core inventories

This commit is contained in:
cflmy committed 2026-11-22 20:26:26 +08:00
1 parent 099ff8ba02
commit 995f6026c9
5 files changed
+780 -731

No files matched your search

+32
View File
@@ -569,3 +569,35 @@ fn dispatch() -> i32 {
}
}
}
#[cfg(test)]
#[test]
fn top_level_commands_are_reviewed() {
use clap::CommandFactory;
let cli = Cli::command();
let mut names: Vec<_> = cli
.get_subcommands()
.map(|command| command.get_name())
.collect();
names.sort_unstable();
assert_eq!(
names,
[
"__plugin-worker",
"add",
"call",
"check",
"fmt",
"init",
"inspect",
"lock",
"plugin",
"remove",
"run",
"sync",
"tool"
],
"review changes under ADR-0064"
);
}