Skip to content

Reduce and focus closure command examples #1982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged

Conversation

Kissaki
Copy link
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
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