Skip to content

Commit ae810cf

Browse files
committed
version
1 parent 3b20ae1 commit ae810cf

2 files changed

Lines changed: 45 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeant-cli",
3-
"version": "0.4.7",
3+
"version": "0.4.8",
44
"description": "Code review CLI tool",
55
"type": "module",
66
"bin": {

scans.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,47 @@ codeant scans dismissed --repo acme/backend
217217
# List dismissed secrets alerts
218218
codeant scans dismissed --repo acme/backend --analysis-type secrets
219219
```
220+
221+
---
222+
223+
### `scans start-scan`
224+
225+
Trigger a new analysis run for a repository.
226+
227+
```bash
228+
codeant scans start-scan [options]
229+
```
230+
231+
All options are optional — `repo`, `branch`, and `commit` are auto-detected from the local git context when not provided.
232+
233+
**Options:**
234+
235+
| Option | Description |
236+
|--------|-------------|
237+
| `--repo <repo>` | Repository in `owner/repo` format (auto-detected from git remote) |
238+
| `--branch <name>` | Branch to scan (auto-detected from current checkout) |
239+
| `--commit <sha>` | Commit SHA to scan (resolved from remote HEAD of branch if omitted) |
240+
| `--include <paths>` | Comma-separated file path glob patterns to include |
241+
| `--exclude <paths>` | Comma-separated file path glob patterns to exclude |
242+
243+
**Examples:**
244+
245+
```bash
246+
# Zero-config — auto-detects repo, branch, and latest commit
247+
codeant scans start-scan
248+
249+
# Explicit repo and branch
250+
codeant scans start-scan --repo CodeAnt-AI/codeant-cli --branch main
251+
252+
# Explicit commit SHA
253+
codeant scans start-scan \
254+
--repo CodeAnt-AI/codeant-cli \
255+
--branch main \
256+
--commit b509bffa1721da442f35a7ccab969822711a67f0
257+
258+
# Scan only specific files
259+
codeant scans start-scan \
260+
--branch main \
261+
--include "src/main.py,src/utils.py" \
262+
--exclude "tests/,*.md"
263+
```

0 commit comments

Comments
 (0)