@fettle/cli 2.0.1 → 2.0.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/README.md +13 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -17,5 +17,18 @@ fettle --repos acme/api --api-url https://ghe.acme.com/api/v3
|
|
|
17
17
|
Exit codes: `0` success, `1` graded below `--fail-below`, `2` invalid usage, `3` a
|
|
18
18
|
repository or its configuration could not be read.
|
|
19
19
|
|
|
20
|
+
## Programmatic use
|
|
21
|
+
|
|
22
|
+
The supported interface is the `fettle` command. The package also exports the pieces
|
|
23
|
+
it is built from — `run`, `parseCliOptions`, `render`, and the exit codes — for
|
|
24
|
+
wrapping the command in your own entry point:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { run, EXIT_BELOW_FLOOR } from '@fettle/cli';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
For scanning from code, use [`@fettle/core`](https://www.npmjs.com/package/@fettle/core)
|
|
31
|
+
instead; it is the library, and this is a shell around it.
|
|
32
|
+
|
|
20
33
|
Run `fettle --help` for all flags. Full documentation:
|
|
21
34
|
[github.com/rumankazi/fettle](https://github.com/rumankazi/fettle).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fettle/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Command-line interface for grading repository maintenance health.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/rumankazi/fettle#readme",
|
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
"ghes"
|
|
22
22
|
],
|
|
23
23
|
"type": "module",
|
|
24
|
+
"main": "./dist/cli.js",
|
|
25
|
+
"types": "./dist/cli.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": "./dist/cli.js",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
24
30
|
"bin": {
|
|
25
31
|
"fettle": "./dist/index.js"
|
|
26
32
|
},
|
|
@@ -31,7 +37,7 @@
|
|
|
31
37
|
"node": ">=20"
|
|
32
38
|
},
|
|
33
39
|
"dependencies": {
|
|
34
|
-
"@fettle/core": "2.0.
|
|
40
|
+
"@fettle/core": "2.0.2"
|
|
35
41
|
},
|
|
36
42
|
"scripts": {
|
|
37
43
|
"build": "tsc -p tsconfig.build.json",
|