nushell/crates/nu-engine/src
NotTheDr01ds 44aa0a2de4
Table help rendering (#13182)
# Description

Mostly fixes #13149 with much of the credit to @fdncred.

This PR runs `table --expand` against `help` example results. This is
essentially the same fix that #13146 was for `std help`.

It also changes the shape of the result for the `table --expand`
example, as it was hardcoded wrong.

~Still needed is a fix for the `table --collapse` example.~ Note that
this is also still a bug in `std help` that I didn't noticed before.

# User-Facing Changes

Certain tables are now rendered correctly in the help examples for:

* `table`
* `zip`
* `flatten`
* And almost certainly others

# Tests + Formatting

- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2024-06-19 20:12:25 -05:00
..
call_ext.rs Rename IoStream to OutDest (#12433) 2024-04-09 16:48:32 +00:00
closure_eval.rs Refactor using ClosureEval types (#12541) 2024-04-22 14:15:09 +08:00
column.rs Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
command_prelude.rs Make string related commands parse-time evaluatable (#13032) 2024-06-05 22:21:52 +03:00
documentation.rs Table help rendering (#13182) 2024-06-19 20:12:25 -05:00
env.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
eval.rs Span ID Refactor (Step 2): Use SpanId of expressions in some places (#13102) 2024-06-09 12:15:53 +03:00
eval_helpers.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
glob_from.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
lib.rs Refactor using ClosureEval types (#12541) 2024-04-22 14:15:09 +08:00
scope.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00