Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
14
repos/effect/.changeset/few-mirrors-pull.md
Normal file
14
repos/effect/.changeset/few-mirrors-pull.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
"effect": patch
|
||||
---
|
||||
|
||||
Make CLI global settings directly yieldable and simplify built-in names.
|
||||
|
||||
`GlobalFlag.setting` now takes `{ flag, defaultValue }` and returns a setting that is a `Context.Reference`, so handlers and `Command.provide*` effects can `yield*` global setting values directly.
|
||||
|
||||
Built-in settings keep internal behavior in `runWith` (for example, `--log-level` still configures `References.MinimumLogLevel`) while also being readable as values.
|
||||
|
||||
Also renamed built-in globals:
|
||||
|
||||
- `GlobalFlag.CompletionsFlag` -> `GlobalFlag.Completions`
|
||||
- `GlobalFlag.LogLevelFlag` -> `GlobalFlag.LogLevel`
|
||||
Reference in New Issue
Block a user