fix(cli): restore help registration and descriptor graph

This commit is contained in:
Vincent Koc
2026-04-26 22:26:39 -07:00
parent 02dae3e1d1
commit 3d59e8192b
3 changed files with 25 additions and 6 deletions

View File

@@ -12,6 +12,13 @@ const getPluginCliCommandDescriptorsMock = vi.fn(
);
vi.mock("./core-command-descriptors.js", () => ({
CORE_CLI_COMMAND_DESCRIPTORS: [
{
name: "status",
description: "Show status",
hasSubcommands: false,
},
],
getCoreCliCommandDescriptors: () => [
{
name: "status",
@@ -23,6 +30,13 @@ vi.mock("./core-command-descriptors.js", () => ({
}));
vi.mock("./subcli-descriptors.js", () => ({
SUB_CLI_DESCRIPTORS: [
{
name: "config",
description: "Manage config",
hasSubcommands: true,
},
],
getSubCliEntries: () => [
{
name: "config",