github Effect-TS/effect @effect/cli@0.43.1

latest releases: @effect/typeclass@0.29.14, @effect/vitest@0.13.14, @effect/sql-sqlite-wasm@0.20.5...
2 months ago

Patch Changes

  • #3561 2df49c4 Thanks @IMax153! - Add Options.withFallbackPrompt to CLI

    You can now specify that a command-line option should fallback to prompting the
    user for a value if no value is specified.

    import * as Options from "@effect/cli/Options"
    import * as Prompt from "@effect/cli/Prompt"
    
    const name = Options.text("name").pipe(
      Options.withFallbackPrompt(
        Prompt.text({
          message: "Please provide your name"
        })
      )
    )

Don't miss a new effect release

NewReleases is sending notifications on new releases.