Skip to content

Commit 09efa94

Browse files
Merge pull request #185 from DiogoRibeiro7/codex/atualizar-readme.md-com-novos-recursos
Add CLI usage instructions
2 parents 8516b3e + b390ae2 commit 09efa94

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ A GitHub Action that scans your codebase for inline TODOs, FIXMEs, and BUG comme
99
- ✅ Detects `TODO`, `FIXME`, `BUG`, and `HACK` comments
1010
- ✅ Supports multiple languages: `.ts`, `.js`, `.py`, `.go`, `.html`, etc.
1111
- ✅ Extracts metadata like `priority`, `due`, etc.
12+
- ✅ Parses structured tags (`@assignee`, `#module`, `key=value`)
13+
- ✅ Warns about overdue TODOs
1214
- ✅ Automatically labels issues based on type and metadata
1315
- ✅ Creates labels on the fly if they don't exist
1416
- ✅ Supports custom label colors and descriptions via JSON config
17+
- ✅ Custom templates for issue titles and bodies
18+
- ✅ LLM-powered issue title and body generation
19+
- ✅ Command-line interface for local usage
20+
- ✅ Optional Jira synchronization
1521

1622
---
1723

@@ -50,6 +56,20 @@ jobs:
5056
limit: 5
5157
```
5258
59+
### 2. Run the CLI locally
60+
61+
Use the bundled command-line interface to scan a directory on your machine and
62+
optionally generate a markdown report:
63+
64+
```bash
65+
npx todo-action --dir src --report
66+
```
67+
68+
Flags:
69+
70+
- `--dir`, `-d` – Directory to scan (defaults to the current directory)
71+
- `--report`, `-r` – Write a `TODO_REPORT.md` file with all results
72+
5373
## 📝 Example TODOs
5474

5575
```ts
@@ -75,10 +95,10 @@ If a label like `priority:high` or `due:2025-06-01` doesn't exist, it will be au
7595

7696
## 📌 Notes
7797

78-
- Max **5 issues** are created per run to avoid rate limiting (configurable via the `limit` input)
79-
- **Duplicate detection** is not yet implemented _(coming soon)_
80-
- All labels are **auto-created with default colors** if missing
81-
- Provide a JSON file via `label-config` to override colors and descriptions
98+
- Max **5 issues** are created per run to avoid rate limiting (configurable via the `limit` input)
99+
- **Duplicate detection** prevents reopening the same TODO multiple times
100+
- All labels are **auto-created with default colors** if missing
101+
- Provide a JSON file via `label-config` to override colors and descriptions
82102

83103
---
84104

0 commit comments

Comments
 (0)