Skip to content

Commit 5c011bd

Browse files
committed
fix: register event list in ORG_PROJECT_COMMANDS and update synonym test
- Add 'event list' to ORG_PROJECT_COMMANDS (uses issue positional) - Update command-suggestions test: event/list is now a real command, no longer a synonym suggesting issue view
1 parent f34a490 commit 5c011bd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/lib/complete.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const ORG_PROJECT_COMMANDS = new Set([
103103
"span list",
104104
"span view",
105105
"event view",
106+
"event list",
106107
"log list",
107108
"log view",
108109
"dashboard list",

test/lib/command-suggestions.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@ describe("getCommandSuggestion", () => {
5959
expect(s!.command).toContain("assignedTo");
6060
});
6161

62-
// --- Pattern 4: event list ---
63-
test("suggests issue view for 'event/list'", () => {
64-
const s = getCommandSuggestion("event", "list");
65-
expect(s).toBeDefined();
66-
expect(s!.command).toContain("issue view");
67-
expect(s!.explanation).toContain("scoped to issues");
62+
// --- Pattern 4: event list is now a real command (no longer a synonym) ---
63+
test("returns undefined for 'event/list' (now a real command)", () => {
64+
expect(getCommandSuggestion("event", "list")).toBeUndefined();
6865
});
6966

7067
// --- Pattern 5: old sentry-cli commands ---

0 commit comments

Comments
 (0)