You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`organization`| Organization name on the provider |
114
+
|`repository`| Repository name |
115
+
116
+
| Option | Description |
117
+
|---|---|
118
+
|`--branch <branch>`| Branch name (defaults to the main branch) |
119
+
|`--patterns <patterns>`| Comma-separated list of pattern IDs |
120
+
|`--severities <severities>`| Comma-separated list of severity levels: `Critical`, `High`, `Medium`, `Minor`|
121
+
|`--categories <categories>`| Comma-separated list of category names |
122
+
|`--languages <languages>`| Comma-separated list of language names |
123
+
|`--tags <tags>`| Comma-separated list of tag names |
124
+
|`--authors <authors>`| Comma-separated list of author emails |
125
+
|`--overview`| Show issue count totals instead of the issues list |
126
+
127
+
Without `--overview`, displays issues as cards sorted by severity (Error first), with file path, line content, and false-positive warnings where applicable.
128
+
129
+
With `--overview`, displays issue count totals grouped by: category, severity, language, tag, and author.
- 2026-02-18: CI pipelines — build+test on push/PR (Node 18/20/22), publish to npm on release
177
235
- 2026-02-18: CLI help examples added to all commands
236
+
- 2026-02-19: `issues` command implemented with tests (11 tests) — card-style list with filters, `--overview` mode with count tables by category/severity/language/tag/author
237
+
- 2026-02-20: `findings` command implemented with tests (13 tests) — card-style list for repo or org-wide, filters by severity/status/category/scan-type/DAST targets, CVE/CWE/version display
Copy file name to clipboardExpand all lines: src/commands/CLAUDE.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,30 @@
4
4
5
5
Each command is a single file that exports a `register<Name>Command(program: Command)` function. Commands are registered in `src/index.ts`.
6
6
7
+
## Command Aliases
8
+
9
+
Every command must declare a short alias via `.alias()`. Keep aliases short (2–4 characters) and intuitive:
10
+
-`repositories` → `repos`
11
+
-`repository` → `repo`
12
+
-`pull-request` → `pr`
13
+
-`issues` → `is`
14
+
15
+
## Option Short Flags
16
+
17
+
Every command option must have both a short flag and a long flag: `-X, --long-name <value>`. Pick single letters that are intuitive and don't conflict with Commander's built-in flags (`-V/--version`, `-h/--help`) or the global `-o/--output` option. When the natural letter is already taken, use uppercase (e.g. `-O, --overview` instead of `-o`).
18
+
19
+
## Option Naming: Singular vs Plural
20
+
21
+
Use a **singular** option name when the parameter accepts a single value, and a **plural** name when it accepts a comma-separated list:
22
+
23
+
-`--branch main` → singular (one branch)
24
+
-`--severities Critical,High` → plural (list of severity levels)
25
+
-`--categories Security,CodeStyle` → plural (list of categories)
26
+
-`--languages TypeScript,Python` → plural (list of languages)
27
+
-`--authors dev@example.com,other@example.com` → plural (list of emails)
28
+
29
+
This applies to both the long flag name and the metavar: `--severities <severities>`, not `--severities <severity>`.
30
+
7
31
## Output Format
8
32
9
33
All commands support `--output json` via the global `-o, --output` option. Commands use `getOutputFormat(this)` (from `utils/output.ts`) to check the format and either:
0 commit comments