Skip to content

Reduce and focus closure command examples#1982

Merged
fdncred merged 1 commit into
nushell:mainfrom
Kissaki:closure2
Jul 16, 2025
Merged

Reduce and focus closure command examples#1982
fdncred merged 1 commit into
nushell:mainfrom
Kissaki:closure2

Conversation

@Kissaki
Copy link
Copy Markdown
Contributor

@Kissaki Kissaki commented Jul 16, 2025

In this section of the language reference we want to explore and demonstrate examples of variance of use.

The unnecessary layout separation (headlines, horizontal line separators) and command elaboration took away from that. This change focuses the examples into demonstrating different closure use cases and behaviors in the context of commands.

It also adjusts the examples to have one code block with input and output.

It also improves some code examples, like the sort-by actually doing some sorting, demonstrating.

With the sometimes adjusted examples and documented output, the closure behavior does not need the redundant explanation.

Relates to #1929

In this section of the language reference we want to explore and demonstrate examples of variance of use.

The unnecessary layout separation (headlines, horizontal line separators) and command elaboration took away from that.
This change focuses the examples into demonstrating different closure use cases and behaviors in the context of commands.

It also adjusts the examples to have one code block with input and output.

It also improves some code examples, like the sort-by actually doing some sorting, demonstrating.

With the sometimes adjusted examples and documented output, the closure behavior does not need the redundant explanation.
@fdncred fdncred merged commit ba23bda into nushell:main Jul 16, 2025
2 checks passed
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Jul 16, 2025

Thanks

@Kissaki Kissaki deleted the closure2 branch July 16, 2025 19:10
@Kissaki Kissaki mentioned this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants