From c6fc0ba05c940d3a873710a43cfd9f0ae97aa433 Mon Sep 17 00:00:00 2001 From: nghetienhiep <13849419+nghetienhiep@users.noreply.github.com> Date: Tue, 14 Jul 2026 19:46:41 +0000 Subject: [PATCH] fix(miner): list queue dashboard in cli.js help text runPortfolioDashboard has been dispatched from `queue dashboard` for a while and the README documents it, but printHelp's queue usage block never mentioned it, so --help gave no way to discover the command. Closes #5832 --- packages/loopover-miner/lib/cli.js | 1 + test/unit/miner-cli.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/loopover-miner/lib/cli.js b/packages/loopover-miner/lib/cli.js index d2e77a379d..9155717527 100644 --- a/packages/loopover-miner/lib/cli.js +++ b/packages/loopover-miner/lib/cli.js @@ -35,6 +35,7 @@ export function printHelp(input) { " Claim the highest-priority queued item, optionally WIP-cap-aware", " loopover-miner queue claim-batch [--global-wip ] [--per-repo-wip ] [--dry-run] [--json]", " loopover-miner queue metrics Print portfolio-queue counters in Prometheus text format", + " loopover-miner queue dashboard [--json] Print portfolio-queue backlog status counts + oldest-queued age", " loopover-miner queue done [--dry-run] [--json]", " loopover-miner queue release [--dry-run] [--json] Return a claimed item to the queue", " loopover-miner queue requeue [--dry-run] [--json] Put a completed item back on the queue", diff --git a/test/unit/miner-cli.test.ts b/test/unit/miner-cli.test.ts index 0dcc05522a..6f2c366c4a 100644 --- a/test/unit/miner-cli.test.ts +++ b/test/unit/miner-cli.test.ts @@ -67,6 +67,7 @@ describe("loopover-miner CLI helpers", () => { expect(text).toContain("loopover-miner metrics"); expect(text).toContain("loopover-miner migrate [--json]"); expect(text).toContain("loopover-miner ledger metrics"); + expect(text).toContain("loopover-miner queue dashboard [--json]"); expect(text).toContain("--no-update-check"); });