feat(command): expose registration snapshots for inspection
Publish UPM package / publish (push) Successful in 2s
Publish NuGet packages / publish (push) Successful in 3m37s

This commit is contained in:
2026-09-29 10:14:38 +08:00
parent 5414a747e5
commit 174b9c6976
4 changed files with 17 additions and 4 deletions
+3
View File
@@ -56,6 +56,9 @@ namespace ShrinkCommand
RegisterBuiltInCommands();
}
public IReadOnlyList<(string Path, MethodInfo Handler)> CaptureBindings() => _commands
.Select(command => (command.Descriptor.Path, command.Handler.Method)).ToArray();
public IReadOnlyList<ShrinkCommandDescriptor> Commands => _commands
.Select(command => command.Descriptor)
.OrderBy(command => command.Path, StringComparer.OrdinalIgnoreCase)