From f3facf4a99772098b90a51f173de514fbcf8a717 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 19 Oct 2023 13:03:50 +1300 Subject: [PATCH] update effect (#343) --- .changeset/nine-bulldogs-greet.md | 5 + .prettierignore | 2 + docs/examples/index.ts | 2 - .../src-Options.ts-constant-choice-0.ts | 6 - ...c-Options.ts-constant-choiceWithValue-0.ts | 21 -- docs/examples/tsconfig.json | 24 -- docs/modules/Options.ts.md | 2 +- docs/modules/Primitive.ts.md | 2 +- docs/modules/Prompt.ts.md | 4 +- docs/modules/Prompt/Action.ts.md | 2 +- docs/modules/ShellType.ts.md | 2 +- docs/modules/Terminal.ts.md | 2 +- docs/modules/Usage.ts.md | 2 +- docs/modules/ValidationError.ts.md | 2 +- docs/modules/index.ts.md | 227 ++++++++++++++++++ package.json | 22 +- pnpm-lock.yaml | 126 +++++----- src/Options.ts | 4 +- 18 files changed, 319 insertions(+), 138 deletions(-) create mode 100644 .changeset/nine-bulldogs-greet.md create mode 100644 .prettierignore delete mode 100644 docs/examples/index.ts delete mode 100644 docs/examples/src-Options.ts-constant-choice-0.ts delete mode 100644 docs/examples/src-Options.ts-constant-choiceWithValue-0.ts delete mode 100644 docs/examples/tsconfig.json create mode 100644 docs/modules/index.ts.md diff --git a/.changeset/nine-bulldogs-greet.md b/.changeset/nine-bulldogs-greet.md new file mode 100644 index 0000000..d692e71 --- /dev/null +++ b/.changeset/nine-bulldogs-greet.md @@ -0,0 +1,5 @@ +--- +"@effect/cli": minor +--- + +update effect diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..afe8be7 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +*.js +*.ts diff --git a/docs/examples/index.ts b/docs/examples/index.ts deleted file mode 100644 index 820624c..0000000 --- a/docs/examples/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -import './src-Options.ts-constant-choice-0' -import './src-Options.ts-constant-choiceWithValue-0' diff --git a/docs/examples/src-Options.ts-constant-choice-0.ts b/docs/examples/src-Options.ts-constant-choice-0.ts deleted file mode 100644 index c3b9795..0000000 --- a/docs/examples/src-Options.ts-constant-choice-0.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as Options from '../../src/Options' - -export const animal: Options.Options<"dog" | "cat"> = Options.choice( - "animal", - ["dog", "cat"] -) diff --git a/docs/examples/src-Options.ts-constant-choiceWithValue-0.ts b/docs/examples/src-Options.ts-constant-choiceWithValue-0.ts deleted file mode 100644 index 2f6ac6a..0000000 --- a/docs/examples/src-Options.ts-constant-choiceWithValue-0.ts +++ /dev/null @@ -1,21 +0,0 @@ -import * as Options from '../../src/Options' -import * as Data from "effect/Data" - -export type Animal = Dog | Cat - -export interface Dog extends Data.Case { - readonly _tag: "Dog" -} - -export const Dog = Data.tagged("Dog") - -export interface Cat extends Data.Case { - readonly _tag: "Cat" -} - -export const Cat = Data.tagged("Cat") - -export const animal: Options.Options = Options.choiceWithValue("animal", [ - ["dog", Dog()], - ["cat", Cat()], -]) diff --git a/docs/examples/tsconfig.json b/docs/examples/tsconfig.json deleted file mode 100644 index c93817b..0000000 --- a/docs/examples/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "noEmit": true, - "strict": true, - "target": "ES2021", - "lib": [ - "ES2021" - ], - "paths": { - "@effect/cli": [ - "../../src/index.ts" - ], - "@effect/cli/test/*": [ - "../../test/*" - ], - "@effect/cli/examples/*": [ - "../../examples/*" - ], - "@effect/cli/*": [ - "../../src/*" - ] - } - } -} \ No newline at end of file diff --git a/docs/modules/Options.ts.md b/docs/modules/Options.ts.md index 4d63be9..0cf63f7 100644 --- a/docs/modules/Options.ts.md +++ b/docs/modules/Options.ts.md @@ -1,6 +1,6 @@ --- title: Options.ts -nav_order: 11 +nav_order: 12 parent: Modules --- diff --git a/docs/modules/Primitive.ts.md b/docs/modules/Primitive.ts.md index 0b3fd99..d0cc2a0 100644 --- a/docs/modules/Primitive.ts.md +++ b/docs/modules/Primitive.ts.md @@ -1,6 +1,6 @@ --- title: Primitive.ts -nav_order: 12 +nav_order: 13 parent: Modules --- diff --git a/docs/modules/Prompt.ts.md b/docs/modules/Prompt.ts.md index 1c2cbfd..96df549 100644 --- a/docs/modules/Prompt.ts.md +++ b/docs/modules/Prompt.ts.md @@ -1,6 +1,6 @@ --- title: Prompt.ts -nav_order: 13 +nav_order: 14 parent: Modules --- @@ -196,7 +196,7 @@ Added in v1.0.0 export interface Prompt extends Prompt.Variance, Pipeable.Pipeable, - Effectable.Class {} + Effect.Effect {} ``` Added in v1.0.0 diff --git a/docs/modules/Prompt/Action.ts.md b/docs/modules/Prompt/Action.ts.md index 51729c0..2e75540 100644 --- a/docs/modules/Prompt/Action.ts.md +++ b/docs/modules/Prompt/Action.ts.md @@ -1,6 +1,6 @@ --- title: Prompt/Action.ts -nav_order: 14 +nav_order: 15 parent: Modules --- diff --git a/docs/modules/ShellType.ts.md b/docs/modules/ShellType.ts.md index 82a8558..6b95fac 100644 --- a/docs/modules/ShellType.ts.md +++ b/docs/modules/ShellType.ts.md @@ -1,6 +1,6 @@ --- title: ShellType.ts -nav_order: 15 +nav_order: 16 parent: Modules --- diff --git a/docs/modules/Terminal.ts.md b/docs/modules/Terminal.ts.md index c4bf2f0..4ead48d 100644 --- a/docs/modules/Terminal.ts.md +++ b/docs/modules/Terminal.ts.md @@ -1,6 +1,6 @@ --- title: Terminal.ts -nav_order: 16 +nav_order: 17 parent: Modules --- diff --git a/docs/modules/Usage.ts.md b/docs/modules/Usage.ts.md index fcec3b6..5b2bbed 100644 --- a/docs/modules/Usage.ts.md +++ b/docs/modules/Usage.ts.md @@ -1,6 +1,6 @@ --- title: Usage.ts -nav_order: 17 +nav_order: 18 parent: Modules --- diff --git a/docs/modules/ValidationError.ts.md b/docs/modules/ValidationError.ts.md index 47fb63d..f63b5fc 100644 --- a/docs/modules/ValidationError.ts.md +++ b/docs/modules/ValidationError.ts.md @@ -1,6 +1,6 @@ --- title: ValidationError.ts -nav_order: 18 +nav_order: 19 parent: Modules --- diff --git a/docs/modules/index.ts.md b/docs/modules/index.ts.md new file mode 100644 index 0000000..1ead00e --- /dev/null +++ b/docs/modules/index.ts.md @@ -0,0 +1,227 @@ +--- +title: index.ts +nav_order: 11 +parent: Modules +--- + +## index overview + +Added in v1.0.0 + +--- + +

Table of contents

+ +- [exports](#exports) + - [From "@effect/cli/Args"](#from-effectcliargs) + - [From "@effect/cli/AutoCorrect"](#from-effectcliautocorrect) + - [From "@effect/cli/BuiltInOption"](#from-effectclibuiltinoption) + - [From "@effect/cli/CliApp"](#from-effectclicliapp) + - [From "@effect/cli/CliConfig"](#from-effectclicliconfig) + - [From "@effect/cli/Command"](#from-effectclicommand) + - [From "@effect/cli/CommandDirective"](#from-effectclicommanddirective) + - [From "@effect/cli/Exists"](#from-effectcliexists) + - [From "@effect/cli/HelpDoc"](#from-effectclihelpdoc) + - [From "@effect/cli/Options"](#from-effectclioptions) + - [From "@effect/cli/Primitive"](#from-effectcliprimitive) + - [From "@effect/cli/Prompt"](#from-effectcliprompt) + - [From "@effect/cli/ShellType"](#from-effectclishelltype) + - [From "@effect/cli/Terminal"](#from-effectcliterminal) + - [From "@effect/cli/Usage"](#from-effectcliusage) + - [From "@effect/cli/ValidationError"](#from-effectclivalidationerror) + +--- + +# exports + +## From "@effect/cli/Args" + +Re-exports all named exports from the "@effect/cli/Args" module as `Args`. + +**Signature** + +```ts +export * as Args from '@effect/cli/Args' +``` + +Added in v1.0.0 + +## From "@effect/cli/AutoCorrect" + +Re-exports all named exports from the "@effect/cli/AutoCorrect" module as `AutoCorrect`. + +**Signature** + +```ts +export * as AutoCorrect from '@effect/cli/AutoCorrect' +``` + +Added in v1.0.0 + +## From "@effect/cli/BuiltInOption" + +Re-exports all named exports from the "@effect/cli/BuiltInOption" module as `BuiltInOption`. + +**Signature** + +```ts +export * as BuiltInOption from '@effect/cli/BuiltInOption' +``` + +Added in v1.0.0 + +## From "@effect/cli/CliApp" + +Re-exports all named exports from the "@effect/cli/CliApp" module as `CliApp`. + +**Signature** + +```ts +export * as CliApp from '@effect/cli/CliApp' +``` + +Added in v1.0.0 + +## From "@effect/cli/CliConfig" + +Re-exports all named exports from the "@effect/cli/CliConfig" module as `CliConfig`. + +**Signature** + +```ts +export * as CliConfig from '@effect/cli/CliConfig' +``` + +Added in v1.0.0 + +## From "@effect/cli/Command" + +Re-exports all named exports from the "@effect/cli/Command" module as `Command`. + +**Signature** + +```ts +export * as Command from '@effect/cli/Command' +``` + +Added in v1.0.0 + +## From "@effect/cli/CommandDirective" + +Re-exports all named exports from the "@effect/cli/CommandDirective" module as `CommandDirective`. + +**Signature** + +```ts +export * as CommandDirective from '@effect/cli/CommandDirective' +``` + +Added in v1.0.0 + +## From "@effect/cli/Exists" + +Re-exports all named exports from the "@effect/cli/Exists" module as `Exists`. + +**Signature** + +```ts +export * as Exists from '@effect/cli/Exists' +``` + +Added in v1.0.0 + +## From "@effect/cli/HelpDoc" + +Re-exports all named exports from the "@effect/cli/HelpDoc" module as `HelpDoc`. + +**Signature** + +```ts +export * as HelpDoc from '@effect/cli/HelpDoc' +``` + +Added in v1.0.0 + +## From "@effect/cli/Options" + +Re-exports all named exports from the "@effect/cli/Options" module as `Options`. + +**Signature** + +```ts +export * as Options from '@effect/cli/Options' +``` + +Added in v1.0.0 + +## From "@effect/cli/Primitive" + +Re-exports all named exports from the "@effect/cli/Primitive" module as `Primitive`. + +**Signature** + +```ts +export * as Primitive from '@effect/cli/Primitive' +``` + +Added in v1.0.0 + +## From "@effect/cli/Prompt" + +Re-exports all named exports from the "@effect/cli/Prompt" module as `Prompt`. + +**Signature** + +```ts +export * as Prompt from '@effect/cli/Prompt' +``` + +Added in v1.0.0 + +## From "@effect/cli/ShellType" + +Re-exports all named exports from the "@effect/cli/ShellType" module as `ShellType`. + +**Signature** + +```ts +export * as ShellType from '@effect/cli/ShellType' +``` + +Added in v1.0.0 + +## From "@effect/cli/Terminal" + +Re-exports all named exports from the "@effect/cli/Terminal" module as `Terminal`. + +**Signature** + +```ts +export * as Terminal from '@effect/cli/Terminal' +``` + +Added in v1.0.0 + +## From "@effect/cli/Usage" + +Re-exports all named exports from the "@effect/cli/Usage" module as `Usage`. + +**Signature** + +```ts +export * as Usage from '@effect/cli/Usage' +``` + +Added in v1.0.0 + +## From "@effect/cli/ValidationError" + +Re-exports all named exports from the "@effect/cli/ValidationError" module as `ValidationError`. + +**Signature** + +```ts +export * as ValidationError from '@effect/cli/ValidationError' +``` + +Added in v1.0.0 diff --git a/package.json b/package.json index 4a535cc..f7d1ed9 100644 --- a/package.json +++ b/package.json @@ -59,10 +59,10 @@ }, "packageManager": "pnpm@8.9.0", "peerDependencies": { - "@effect/printer": "^0.19.0", - "@effect/printer-ansi": "^0.19.0", - "@effect/schema": "^0.44.0", - "effect": "2.0.0-next.49" + "@effect/printer": "^0.20.0", + "@effect/printer-ansi": "^0.20.0", + "@effect/schema": "^0.45.0", + "effect": "2.0.0-next.50" }, "devDependencies": { "@babel/core": "^7.23.2", @@ -73,18 +73,18 @@ "@effect/docgen": "^0.2.0", "@effect/eslint-plugin": "^0.1.2", "@effect/language-service": "^0.0.21", - "@effect/printer": "^0.19.0", - "@effect/printer-ansi": "^0.19.0", - "@effect/schema": "^0.44.0", + "@effect/printer": "^0.20.0", + "@effect/printer-ansi": "^0.20.0", + "@effect/schema": "^0.45.0", "@preconstruct/cli": "^2.8.1", - "@types/chai": "^4.3.8", - "@types/node": "^20.8.6", + "@types/chai": "^4.3.9", + "@types/node": "^20.8.7", "@typescript-eslint/eslint-plugin": "^6.8.0", "@typescript-eslint/parser": "^6.8.0", "@vitejs/plugin-react": "^4.1.0", "@vitest/coverage-v8": "^0.34.6", "babel-plugin-annotate-pure-calls": "^0.4.0", - "effect": "2.0.0-next.49", + "effect": "2.0.0-next.50", "error-stack-parser": "^2.1.4", "eslint": "^8.51.0", "eslint-import-resolver-typescript": "^3.6.1", @@ -98,7 +98,7 @@ "stackframe": "^1.3.4", "ts-node": "^10.9.1", "typescript": "^5.2.2", - "vite": "^4.4.11", + "vite": "^4.5.0", "vitest": "0.34.6" }, "files": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c7c43a8..12588f0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,7 +22,7 @@ devDependencies: version: 0.1.9 '@effect/docgen': specifier: ^0.2.0 - version: 0.2.0(@types/node@20.8.6)(typescript@5.2.2) + version: 0.2.0(@types/node@20.8.7)(typescript@5.2.2) '@effect/eslint-plugin': specifier: ^0.1.2 version: 0.1.2 @@ -30,23 +30,23 @@ devDependencies: specifier: ^0.0.21 version: 0.0.21 '@effect/printer': - specifier: ^0.19.0 - version: 0.19.0(@effect/typeclass@0.11.0)(effect@2.0.0-next.49) + specifier: ^0.20.0 + version: 0.20.0(@effect/typeclass@0.12.0)(effect@2.0.0-next.50) '@effect/printer-ansi': - specifier: ^0.19.0 - version: 0.19.0(@effect/typeclass@0.11.0)(effect@2.0.0-next.49) + specifier: ^0.20.0 + version: 0.20.0(@effect/typeclass@0.12.0)(effect@2.0.0-next.50) '@effect/schema': - specifier: ^0.44.0 - version: 0.44.0(effect@2.0.0-next.49)(fast-check@3.13.1) + specifier: ^0.45.0 + version: 0.45.0(effect@2.0.0-next.50)(fast-check@3.13.1) '@preconstruct/cli': specifier: ^2.8.1 version: 2.8.1 '@types/chai': - specifier: ^4.3.8 - version: 4.3.8 + specifier: ^4.3.9 + version: 4.3.9 '@types/node': - specifier: ^20.8.6 - version: 20.8.6 + specifier: ^20.8.7 + version: 20.8.7 '@typescript-eslint/eslint-plugin': specifier: ^6.8.0 version: 6.8.0(@typescript-eslint/parser@6.8.0)(eslint@8.51.0)(typescript@5.2.2) @@ -55,7 +55,7 @@ devDependencies: version: 6.8.0(eslint@8.51.0)(typescript@5.2.2) '@vitejs/plugin-react': specifier: ^4.1.0 - version: 4.1.0(vite@4.4.11) + version: 4.1.0(vite@4.5.0) '@vitest/coverage-v8': specifier: ^0.34.6 version: 0.34.6(vitest@0.34.6) @@ -63,8 +63,8 @@ devDependencies: specifier: ^0.4.0 version: 0.4.0(@babel/core@7.23.2) effect: - specifier: 2.0.0-next.49 - version: 2.0.0-next.49 + specifier: 2.0.0-next.50 + version: 2.0.0-next.50 error-stack-parser: specifier: ^2.1.4 version: 2.1.4 @@ -100,13 +100,13 @@ devDependencies: version: 1.3.4 ts-node: specifier: ^10.9.1 - version: 10.9.1(@types/node@20.8.6)(typescript@5.2.2) + version: 10.9.1(@types/node@20.8.7)(typescript@5.2.2) typescript: specifier: ^5.2.2 version: 5.2.2 vite: - specifier: ^4.4.11 - version: 4.4.11(@types/node@20.8.6) + specifier: ^4.5.0 + version: 4.5.0(@types/node@20.8.7) vitest: specifier: 0.34.6 version: 0.34.6 @@ -728,7 +728,7 @@ packages: hasBin: true dev: true - /@effect/docgen@0.2.0(@types/node@20.8.6)(typescript@5.2.2): + /@effect/docgen@0.2.0(@types/node@20.8.7)(typescript@5.2.2): resolution: {integrity: sha512-QVQmQESrw9Ayn6LCxlnK+mvFCpkGGtUOtTnp4faTjJ5cC9sfII3pzzaQFXqFoJlsYA9qioJwUb4SBL6h4s7KHA==} engines: {node: '>=16.17.1'} hasBin: true @@ -741,7 +741,7 @@ packages: markdown-toc: github.com/effect-ts/markdown-toc/4bfeb0f140105440ea0d12df2fa23199cc3ec1d5 prettier: 2.8.8 ts-morph: 19.0.0 - ts-node: 10.9.1(@types/node@20.8.6)(typescript@5.2.2) + ts-node: 10.9.1(@types/node@20.8.7)(typescript@5.2.2) tsconfck: 2.1.2(typescript@5.2.2) typescript: 5.2.2 transitivePeerDependencies: @@ -762,43 +762,43 @@ packages: resolution: {integrity: sha512-e8vfKbjnbYiyneBincEFS0tzXluopGK77OkVFbPRtUbNDS5tJfb+jiwOQEiqASDsadcZmd+9J9+Q6v/z7GuN2g==} dev: true - /@effect/printer-ansi@0.19.0(@effect/typeclass@0.11.0)(effect@2.0.0-next.49): - resolution: {integrity: sha512-uVwGOpkny4drz/ImBtFKsJMvCjNpn1ap2DpyncurkvG0CeyR82zsXjrLD6nuJCVENI80+HaMR1Rhyp37x7yE6w==} + /@effect/printer-ansi@0.20.0(@effect/typeclass@0.12.0)(effect@2.0.0-next.50): + resolution: {integrity: sha512-LiUjHk3IJda7wd+yC/9fUDlcWqA+rvx7CQyapxxuzKujQLNH5/9goQ1z3cln7hYXhe65Zh4oM2IvWWV0qjtmUQ==} peerDependencies: - '@effect/typeclass': ^0.11.0 - effect: 2.0.0-next.49 + '@effect/typeclass': ^0.12.0 + effect: 2.0.0-next.50 dependencies: - '@effect/printer': 0.19.0(@effect/typeclass@0.11.0)(effect@2.0.0-next.49) - '@effect/typeclass': 0.11.0(effect@2.0.0-next.49) - effect: 2.0.0-next.49 + '@effect/printer': 0.20.0(@effect/typeclass@0.12.0)(effect@2.0.0-next.50) + '@effect/typeclass': 0.12.0(effect@2.0.0-next.50) + effect: 2.0.0-next.50 dev: true - /@effect/printer@0.19.0(@effect/typeclass@0.11.0)(effect@2.0.0-next.49): - resolution: {integrity: sha512-A16q8d4Ajkt7cX3GclNZNWswW5pXTRjUowQt9eOHhXVa/arTLZ7IaOk4K5WltHPsiZnV6dpbKik+QNreSsz0Dw==} + /@effect/printer@0.20.0(@effect/typeclass@0.12.0)(effect@2.0.0-next.50): + resolution: {integrity: sha512-jJC1syfQTrFVcKLKMmUzyeSWSRjViCMbG+PnxgJ11QkiuoyN/GBpi/uJOYeS1XA5/exnrP/d4jbtIYI6bI114w==} peerDependencies: - '@effect/typeclass': ^0.11.0 - effect: 2.0.0-next.49 + '@effect/typeclass': ^0.12.0 + effect: 2.0.0-next.50 dependencies: - '@effect/typeclass': 0.11.0(effect@2.0.0-next.49) - effect: 2.0.0-next.49 + '@effect/typeclass': 0.12.0(effect@2.0.0-next.50) + effect: 2.0.0-next.50 dev: true - /@effect/schema@0.44.0(effect@2.0.0-next.49)(fast-check@3.13.1): - resolution: {integrity: sha512-sUQrGJEtn4tRv6OChdfIPMWhOwSaOivrEksGQYxQ7OpKpXASoeNDBZK++Pb8wI25VREBvBPttXw7racsbvAfXA==} + /@effect/schema@0.45.0(effect@2.0.0-next.50)(fast-check@3.13.1): + resolution: {integrity: sha512-pBk81TtckaBhVR8/uJuqE6QbQH2qWD3y1z3M0njZ4ibHfEe0tFRkDgz8BnhYXev3RdknTkpFAXRZNcZ65MXHFg==} peerDependencies: - effect: 2.0.0-next.49 + effect: 2.0.0-next.50 fast-check: ^3.13.1 dependencies: - effect: 2.0.0-next.49 + effect: 2.0.0-next.50 fast-check: 3.13.1 dev: true - /@effect/typeclass@0.11.0(effect@2.0.0-next.49): - resolution: {integrity: sha512-Q7sVLW3P5uKHjv7BF75KRDn/Z6E7CwsHNI6Ejqj9qDeEeN2bzAd46TnZ8fXcAEqQ/Pi5v6aJVTF0wSfQ7Ai0kg==} + /@effect/typeclass@0.12.0(effect@2.0.0-next.50): + resolution: {integrity: sha512-UJjn4OTb+NAYhdEgJkOgK/E+noLZW5FwKqmx8IZqsMGLAFzeh4wCwnRIXf/oTHosQ6Zoq13J7Yloi/24pPYv1Q==} peerDependencies: - effect: 2.0.0-next.49 + effect: 2.0.0-next.50 dependencies: - effect: 2.0.0-next.49 + effect: 2.0.0-next.50 dev: true /@esbuild/android-arm64@0.18.20: @@ -1086,7 +1086,7 @@ packages: dependencies: '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.2 - '@types/node': 20.8.6 + '@types/node': 20.8.7 '@types/yargs': 15.0.16 chalk: 4.1.2 dev: true @@ -1373,11 +1373,11 @@ packages: /@types/chai-subset@1.3.3: resolution: {integrity: sha512-frBecisrNGz+F4T6bcc+NLeolfiojh5FxW2klu669+8BARtyQv2C/GkNW6FUodVe4BroGMP/wER/YDGc7rEllw==} dependencies: - '@types/chai': 4.3.8 + '@types/chai': 4.3.9 dev: true - /@types/chai@4.3.8: - resolution: {integrity: sha512-yW/qTM4mRBBcsA9Xw9FbcImYtFPY7sgr+G/O5RDYVmxiy9a+pE5FyoFUi8JYCZY5nicj8atrr1pcfPiYpeNGOA==} + /@types/chai@4.3.9: + resolution: {integrity: sha512-69TtiDzu0bcmKQv3yg1Zx409/Kd7r0b5F1PfpYJfSHzLGtB53547V4u+9iqKYsTu/O2ai6KTb0TInNpvuQ3qmg==} dev: true /@types/estree@0.0.39: @@ -1426,8 +1426,8 @@ packages: resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} dev: true - /@types/node@20.8.6: - resolution: {integrity: sha512-eWO4K2Ji70QzKUqRy6oyJWUeB7+g2cRagT3T/nxYibYcT4y2BDL8lqolRXjTHmkZCdJfIPaY73KbJAZmcryxTQ==} + /@types/node@20.8.7: + resolution: {integrity: sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==} dependencies: undici-types: 5.25.3 dev: true @@ -1439,7 +1439,7 @@ packages: /@types/resolve@1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 20.8.6 + '@types/node': 20.8.7 dev: true /@types/semver@7.5.3: @@ -1720,7 +1720,7 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@vitejs/plugin-react@4.1.0(vite@4.4.11): + /@vitejs/plugin-react@4.1.0(vite@4.5.0): resolution: {integrity: sha512-rM0SqazU9iqPUraQ2JlIvReeaxOoRj6n+PzB1C0cBzIbd8qP336nC39/R9yPi3wVcah7E7j/kdU1uCUqMEU4OQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -1731,7 +1731,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.23.2) '@types/babel__core': 7.20.2 react-refresh: 0.14.0 - vite: 4.4.11(@types/node@20.8.6) + vite: 4.5.0(@types/node@20.8.7) transitivePeerDependencies: - supports-color dev: true @@ -2623,8 +2623,8 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /effect@2.0.0-next.49: - resolution: {integrity: sha512-FiOQ2Khm2REPQOkxkRPyTVyfPCUNecDopz1ZOKzZrZyCAzDqWiFYvdPwX/nYQrXY77/DBGcaLEsQ4/1BpG1bAg==} + /effect@2.0.0-next.50: + resolution: {integrity: sha512-dlwI31Vza4ybFtNDstx3AnZkBBzaSMMNfZmwXNrzm1S3fE1IoQzoHCHelBH9gSZCRtE4gzZbplyWD/B6iePGxg==} dev: true /electron-to-chromium@1.4.556: @@ -4008,7 +4008,7 @@ packages: resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.8.6 + '@types/node': 20.8.7 merge-stream: 2.0.0 supports-color: 7.2.0 dev: true @@ -5705,7 +5705,7 @@ packages: code-block-writer: 12.0.0 dev: true - /ts-node@10.9.1(@types/node@20.8.6)(typescript@5.2.2): + /ts-node@10.9.1(@types/node@20.8.7)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -5724,7 +5724,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.8.6 + '@types/node': 20.8.7 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3 @@ -5978,7 +5978,7 @@ packages: spdx-expression-parse: 3.0.1 dev: true - /vite-node@0.34.6(@types/node@20.8.6): + /vite-node@0.34.6(@types/node@20.8.7): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -5988,7 +5988,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.11(@types/node@20.8.6) + vite: 4.5.0(@types/node@20.8.7) transitivePeerDependencies: - '@types/node' - less @@ -6000,8 +6000,8 @@ packages: - terser dev: true - /vite@4.4.11(@types/node@20.8.6): - resolution: {integrity: sha512-ksNZJlkcU9b0lBwAGZGGaZHCMqHsc8OpgtoYhsQ4/I2v5cnpmmmqe5pM4nv/4Hn6G/2GhTdj0DhZh2e+Er1q5A==} + /vite@4.5.0(@types/node@20.8.7): + resolution: {integrity: sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -6028,7 +6028,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.8.6 + '@types/node': 20.8.7 esbuild: 0.18.20 postcss: 8.4.31 rollup: 3.29.4 @@ -6067,9 +6067,9 @@ packages: webdriverio: optional: true dependencies: - '@types/chai': 4.3.8 + '@types/chai': 4.3.9 '@types/chai-subset': 1.3.3 - '@types/node': 20.8.6 + '@types/node': 20.8.7 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -6088,8 +6088,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.4.11(@types/node@20.8.6) - vite-node: 0.34.6(@types/node@20.8.6) + vite: 4.5.0(@types/node@20.8.7) + vite-node: 0.34.6(@types/node@20.8.7) why-is-node-running: 2.2.2 transitivePeerDependencies: - less diff --git a/src/Options.ts b/src/Options.ts index 1ff15c7..e468de7 100644 --- a/src/Options.ts +++ b/src/Options.ts @@ -133,7 +133,7 @@ export const boolean: (name: string, options?: Options.BooleanOptionConfig) => O * inputs. The input will be mapped to it's associated value during parsing. * * @example - * import * as Options from "./Options" + * import * as Options from "@effect/cli/Options" * * export const animal: Options.Options<"dog" | "cat"> = Options.choice( * "animal", @@ -153,7 +153,7 @@ export const choice: >( * inputs. The input will be mapped to it's associated value during parsing. * * @example - * import * as Options from "./Options" + * import * as Options from "@effect/cli/Options" * import * as Data from "effect/Data" * * export type Animal = Dog | Cat