Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'

This commit is contained in:
-Puter
2026-07-19 03:25:10 +05:30
parent dd1071cc10
commit 2daf979036
2214 changed files with 673090 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
---
"effect": patch
---
Add a scoped `CliConfig` service for customizing the built-in global flags used by CLI command runners.
For example, provide an explicit list that omits `GlobalFlag.LogLevel` to remove the built-in `--log-level` flag:
```ts
import { Effect } from "effect"
import { CliConfig, Command, GlobalFlag } from "effect/unstable/cli"
const program = Command.run(command, { version: "1.0.0" }).pipe(
Effect.provide(
CliConfig.layer({
builtIns: [
GlobalFlag.Help,
GlobalFlag.Version,
GlobalFlag.Completions
]
})
)
)
```