Skip to content

fix: into binary not accepting Duration type as input - #18522

Merged
fdncred merged 1 commit into
nushell:mainfrom
jakobwsmnn:binary-duration
Jul 14, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
jakobwsmnn:binary-duration

Conversation

@jakobwsmnn

Copy link
Copy Markdown
Contributor

Description

I’ve noticed that the action function accepts and handles the Duration type.
But Duration is missing from the signature of the command:

42hr | into binary
Error: nu::parser::input_type_mismatch

  × Command does not support duration input.
   ╭─[repl_entry #17:1:8]
 1 │ 42hr | into binary
   ·        ─────┬─────
   ·             ╰── command doesn't support duration input
   ╰────

This PR adds the Duration type to the signature and adds an example.

User-facing changes (Release notes)

into binary now accepts duration input (e.g. 1sec, 1hr, …).

@jakobwsmnn jakobwsmnn changed the title Fix into binary not accepting Duration type as input fix: into binary not accepting Duration type as input Jul 4, 2026
@fdncred fdncred added status:wait-until-after-nushell-release notes:fixes Noted in "Bug fixes" section notes:ready Indicates Ready for Release notes labels Jul 4, 2026
@fdncred
fdncred merged commit 4289ffa into nushell:main Jul 14, 2026
18 checks passed
@fdncred

fdncred commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Thanks

@github-actions github-actions Bot added this to the v0.115.0 milestone Jul 14, 2026
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 status:wait-until-after-nushell-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants