@zeroheight/adoption-cli 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +7 -4
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -12,13 +12,15 @@ npm i @zeroheight/adoption-cli
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
+
### Component usage analysis
|
|
16
|
+
|
|
15
17
|
In the repository in which you wish to analyze the component usage, run the following command:
|
|
16
18
|
|
|
17
19
|
```bash
|
|
18
20
|
zh-adoption analyze
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
#### Options
|
|
22
24
|
|
|
23
25
|
`-e` / `--extensions`
|
|
24
26
|
|
|
@@ -52,11 +54,12 @@ Pass in `false` to disable the interactive mode e.g. when running in a CI enviro
|
|
|
52
54
|
zh-adoption analyze --interactive false -r "My Repo"
|
|
53
55
|
```
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
|
|
56
58
|
|
|
57
59
|
To send adoption data to your [zeroheight](https://zeroheight.com/) account you will need to authenticate using a Client ID and Access Token.
|
|
58
60
|
|
|
59
|
-
###
|
|
61
|
+
### Authentication
|
|
62
|
+
#### Interactive mode
|
|
60
63
|
|
|
61
64
|
When running the `analyze` command, you will be prompted to authenticate. This will save the Client ID and Access Token to your local machine.
|
|
62
65
|
|
|
@@ -66,7 +69,7 @@ Alternatively, you can authenticate by running the following command:
|
|
|
66
69
|
zh-adoption auth
|
|
67
70
|
```
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
#### Non-interactive mode
|
|
70
73
|
|
|
71
74
|
When running the `analyze` command with the `--interactive false` flag, you will need to provide the Client ID and Access Token as environment variables.
|
|
72
75
|
|
package/dist/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ const { output, cleanup } = render(React.createElement(HelpInfo, null));
|
|
|
10
10
|
program
|
|
11
11
|
.name("zh-adoption")
|
|
12
12
|
.description("CLI for measuring design system usage usage in your products")
|
|
13
|
-
.version("0.4.
|
|
13
|
+
.version("0.4.2")
|
|
14
14
|
.addHelpText("before", output)
|
|
15
15
|
.addCommand(analyzeCommand())
|
|
16
16
|
.addCommand(authCommand());
|