@fettle/cli
Advanced tools
+8
-2
| { | ||
| "name": "@fettle/cli", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "description": "Command-line interface for grading repository maintenance health.", | ||
@@ -24,2 +24,8 @@ "license": "MIT", | ||
| "type": "module", | ||
| "main": "./dist/cli.js", | ||
| "types": "./dist/cli.d.ts", | ||
| "exports": { | ||
| ".": "./dist/cli.js", | ||
| "./package.json": "./package.json" | ||
| }, | ||
| "bin": { | ||
@@ -35,3 +41,3 @@ "fettle": "./dist/index.js" | ||
| "dependencies": { | ||
| "@fettle/core": "2.0.1" | ||
| "@fettle/core": "2.0.2" | ||
| }, | ||
@@ -38,0 +44,0 @@ "scripts": { |
+13
-0
@@ -20,3 +20,16 @@ # @fettle/cli | ||
| ## Programmatic use | ||
| The supported interface is the `fettle` command. The package also exports the pieces | ||
| it is built from — `run`, `parseCliOptions`, `render`, and the exit codes — for | ||
| wrapping the command in your own entry point: | ||
| ```ts | ||
| import { run, EXIT_BELOW_FLOOR } from '@fettle/cli'; | ||
| ``` | ||
| For scanning from code, use [`@fettle/core`](https://www.npmjs.com/package/@fettle/core) | ||
| instead; it is the library, and this is a shell around it. | ||
| Run `fettle --help` for all flags. Full documentation: | ||
| [github.com/rumankazi/fettle](https://github.com/rumankazi/fettle). |
22572
2.69%35
59.09%+ Added
- Removed
Updated