Skip to content

allow streaming to commands with union-typed pipeline input - #17048

Merged
WindSoilder merged 1 commit into
nushell:mainfrom
sgvictorino:pipeline-oneof
Nov 22, 2025
Merged

WindSoilder merged 1 commit into
nushell:mainfrom
sgvictorino:pipeline-oneof

Conversation

@sgvictorino

@sgvictorino sgvictorino commented Nov 20, 2025 •

Copy link
Copy Markdown
Contributor

Closes #17031

Release notes summary - What our users need to know

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>

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>
```

@WindSoilder WindSoilder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@WindSoilder
WindSoilder merged commit 48d63df into nushell:main Nov 22, 2025
@github-actions github-actions Bot added this to the v0.109.0 milestone Nov 22, 2025
@WindSoilder WindSoilder added notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oneof<list<any>> in IO types rejects a list stream

2 participants