Skip to content

Commit 00ebf0f

Browse files
authored
feat(tracker): add tracker init command (#425)
1 parent 2d3a1a9 commit 00ebf0f

7 files changed

Lines changed: 1596 additions & 543 deletions

File tree

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ USAGE
8484
* [`hd help [COMMAND]`](#hd-help-command)
8585
* [`hd report committers`](#hd-report-committers)
8686
* [`hd scan eol`](#hd-scan-eol)
87+
* [`hd tracker init`](#hd-tracker-init)
8788
* [`hd update [CHANNEL]`](#hd-update-channel)
8889
* **NOTE:** Only applies to [binary installation method](#binary-installation). NPM users should use [`npm install`](#global-npm-installation) to update to the latest version.
8990

@@ -198,6 +199,40 @@ EXAMPLES
198199

199200
_See code: [src/commands/scan/eol.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.12/src/commands/scan/eol.ts)_
200201

202+
## `hd tracker init`
203+
204+
Initialize the tracker configuration
205+
206+
```
207+
USAGE
208+
$ hd tracker init [--force -o] [-d <value>] [-f <value>] [-i <value>...]
209+
210+
FLAGS
211+
-d, --outputDir=<value> [default: hd-tracker] Output directory for the tracker configuration file
212+
-f, --configFile=<value> [default: config.json] Filename for the tracker configuration file
213+
-i, --ignorePatterns=<value>... [default: node_modules] Ignore patterns to use for the tracker configuration file
214+
-o, --overwrite Overwrites the tracker configuration file if it exists
215+
--force Force tracker configuration file creation. Use with --overwrite flag
216+
217+
DESCRIPTION
218+
Initialize the tracker configuration
219+
220+
EXAMPLES
221+
$ hd tracker init
222+
223+
$ hd tracker init -d trackerDir
224+
225+
$ hd tracker init -d trackerDir -f configFileName
226+
227+
$ hd tracker init -i node_modules
228+
229+
$ hd tracker init -i node_modules -i custom_modules
230+
231+
$ hd tracker init -o
232+
```
233+
234+
_See code: [src/commands/tracker/init.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.13/src/commands/tracker/init.ts)_
235+
201236
## `hd update [CHANNEL]`
202237

203238
update the hd CLI

0 commit comments

Comments
 (0)