Skip to content

Commit 2d3a1a9

Browse files
authored
feat(commands): update committers cmd to match 0.3.1 functionality (#423)
1 parent 2d534dc commit 2d3a1a9

7 files changed

Lines changed: 487 additions & 657 deletions

File tree

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,20 @@ Generate report of committers to a git repository
113113

114114
```
115115
USAGE
116-
$ hd report committers [--json] [-m <value>] [-c] [-s]
116+
$ hd report committers [--json] [-x <value>...] [-d <value>] [--monthly] [-m <value> | -s <value> | -e <value> | | ]
117+
[-c] [-s]
117118
118119
FLAGS
119-
-c, --csv Output in CSV format
120-
-m, --months=<value> [default: 12] The number of months of git history to review
121-
-s, --save Save the committers report as herodevs.committers.<output>
122-
123-
GLOBAL FLAGS
124-
--json Format output as json.
120+
-c, --csv Output in CSV format
121+
-d, --directory=<value> Directory to search
122+
-e, --afterDate=<value> [default: 2024-11-19] Start date (format: yyyy-MM-dd)
123+
-m, --months=<value> [default: 12] The number of months of git history to review. Cannot be used along beforeDate
124+
and afterDate
125+
-s, --beforeDate=<value> [default: 2025-11-19] End date (format: yyyy-MM-dd)
126+
-s, --save Save the committers report as herodevs.committers.<output>
127+
-x, --exclude=<value>... Path Exclusions (eg -x="./src/bin" -x="./dist")
128+
--json Output to JSON format
129+
--monthly Break down by calendar month.
125130
126131
DESCRIPTION
127132
Generate report of committers to a git repository
@@ -136,7 +141,7 @@ EXAMPLES
136141
$ hd report committers --csv
137142
```
138143

139-
_See code: [src/commands/report/committers.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.12/src/commands/report/committers.ts)_
144+
_See code: [src/commands/report/committers.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.13/src/commands/report/committers.ts)_
140145

141146
## `hd scan eol`
142147

package-lock.json

Lines changed: 23 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"@oclif/core": "^4.8.0",
4747
"@oclif/plugin-help": "^6.2.32",
4848
"@oclif/plugin-update": "^4.7.14",
49+
"@oclif/table": "^0.5.1",
50+
"date-fns": "^4.1.0",
4951
"node-machine-id": "^1.1.12",
5052
"ora": "^9.0.0",
5153
"packageurl-js": "^2.0.1",

0 commit comments

Comments
 (0)