Revert "Fix kv set with a closure argument" (#15648)

Reverts nushell/nushell#15588 (see comments there)
This commit is contained in:
Douglas
2025-04-26 23:00:00 -04:00
committed by GitHub
parent a3aae2d26c
commit 5fecf59f54
2 changed files with 9 additions and 43 deletions

View File

@ -38,7 +38,7 @@ export def "kv set" [
# If passed a closure, execute it
let arg_type = ($value_or_closure | describe)
let value = match $arg_type {
closure => { kv get $key --universal=$universal | do $value_or_closure }
closure => { $input | do $value_or_closure }
_ => ($value_or_closure | default $input)
}