@effected/cli 0.1.0 → 0.3.0
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 +1 -1
- package/index.d.ts +5 -5
- package/package.json +3 -3
- package/tsdoc-metadata.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
The boundary layer of a command-line program built on `effect/unstable/cli`: how output reaches a human, how a failure is reported, and how a schema issue becomes a sentence someone can act on. `CliLogger` renders log records as plain lines and routes diagnostics to stderr, reading the `Console` off the fiber so it needs no platform package and the stream split is actually testable. `CliRuntime.reportFailures` catches inside your program so a failure prints through *your* logger instead of Effect's default one on stdout, then re-fails with the exit code and the no-double-report mark. `SchemaIssueRenderer` and `ConfigIssueRenderer` turn issue trees into `unknown key at groups.g.rulesetz`.
|
|
9
9
|
|
|
10
10
|
> **Pre-release.** This package is part of the `@effected/*` kit, in pre-`1.0.0`
|
|
11
|
-
> development against a single pinned Effect v4
|
|
11
|
+
> development against a single pinned Effect v4 prerelease. Packages graduate to
|
|
12
12
|
> `1.0.0` once Effect `4.0.0` ships. To hold your own `effect` versions at
|
|
13
13
|
> exactly the ones the kit is built and tested against, install
|
|
14
14
|
> [`@effected/pnpm-plugin-effect`](https://www.npmjs.com/package/@effected/pnpm-plugin-effect).
|
package/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ interface CliLoggerOptions {
|
|
|
68
68
|
*
|
|
69
69
|
* @public
|
|
70
70
|
*/
|
|
71
|
-
declare class CliLogger {
|
|
71
|
+
export declare class CliLogger {
|
|
72
72
|
private constructor();
|
|
73
73
|
/**
|
|
74
74
|
* The logger itself, for composing into an existing `Logger.layer` set.
|
|
@@ -175,7 +175,7 @@ interface ReportFailuresOptions {
|
|
|
175
175
|
*
|
|
176
176
|
* @public
|
|
177
177
|
*/
|
|
178
|
-
declare class CliRuntime {
|
|
178
|
+
export declare class CliRuntime {
|
|
179
179
|
private constructor();
|
|
180
180
|
/**
|
|
181
181
|
* Catch, render through the ambient logger, and re-fail with the exit code
|
|
@@ -242,7 +242,7 @@ declare class CliRuntime {
|
|
|
242
242
|
*
|
|
243
243
|
* @public
|
|
244
244
|
*/
|
|
245
|
-
declare class ConfigIssueRenderer {
|
|
245
|
+
export declare class ConfigIssueRenderer {
|
|
246
246
|
private constructor();
|
|
247
247
|
/**
|
|
248
248
|
* One line per rejected value.
|
|
@@ -302,7 +302,7 @@ declare class ConfigIssueRenderer {
|
|
|
302
302
|
*
|
|
303
303
|
* @public
|
|
304
304
|
*/
|
|
305
|
-
declare class SchemaIssueRenderer {
|
|
305
|
+
export declare class SchemaIssueRenderer {
|
|
306
306
|
private constructor();
|
|
307
307
|
/**
|
|
308
308
|
* One line per rejected value, deepest path last.
|
|
@@ -313,5 +313,5 @@ declare class SchemaIssueRenderer {
|
|
|
313
313
|
static readonly render: (issue: unknown) => ReadonlyArray<string>;
|
|
314
314
|
}
|
|
315
315
|
//#endregion
|
|
316
|
-
export {
|
|
316
|
+
export type { CliLoggerOptions, ReportFailuresOptions };
|
|
317
317
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The boundary layer of an effect/unstable/cli program: plain CLI output, failure reporting, and schema-issue rendering",
|
|
6
6
|
"keywords": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"./package.json": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@effected/config-file": "^0.
|
|
39
|
-
"effect": "4.0.0-
|
|
38
|
+
"@effected/config-file": "^0.6.0",
|
|
39
|
+
"effect": "4.0.0-rc.112"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@effected/config-file": {
|