allow streaming to commands with union-typed pipeline input#17048
Merged
WindSoilder merged 1 commit intonushell:mainfrom Nov 22, 2025
sgvictorino:pipeline-oneof
Merged
allow streaming to commands with union-typed pipeline input#17048WindSoilder merged 1 commit intonushell:mainfrom sgvictorino:pipeline-oneof
WindSoilder merged 1 commit intonushell:mainfrom
sgvictorino:pipeline-oneof
Conversation
Commands whose input signatures are declared with `oneof` now accept
streams instead of erroring:
```
> def f []: [oneof<list> -> nothing] {}
> [] | each {} | f
Error: nu::shell::only_supports_this_input_type
× Input type not supported.
╭─[entry #2:1:6]
1 │ [] | each {} | f
· ──┬─ ┬
· │ ╰── only oneof<list<any>> input data is supported
· ╰── input type: list<any>
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #17031
Release notes summary - What our users need to know
Commands whose input signatures are declared with
oneofnow acceptstreams instead of erroring: