nushell/crates
amtoine 005511b424
use the tools from pipeline_data.rs to print true tables
This commit uses the construct from `PipelineData::print` to
- get the "declaration ID" of the `table` command
- execute that command on the example outputs

Then we use the construct from `PipelineData::write_all_and_flush`
to
- iterate over all the items of the table
- print them in a pretty way

.# Example output
```nushell
> help merge
...
  Add an 'index' column to the input table
  > [a b c] | wrap name | merge ( [1 2 3] | wrap index )
  ╭───┬──────╮
│ # │ name │
├───┼──────┤
│ 1 │ a    │
│ 2 │ b    │
│ 3 │ c    │
╰───┴──────╯
```

.## Limitations
- the format is not perfect for now
- the use of private method bodies from `PipelineData` is not ideal
2023-02-24 10:24:53 +01:00
..
nu-cli Pin reedline to 0.16.0 (#8142) 2023-02-20 21:44:04 +00:00
nu-color-config Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-command TEST: add the output to the new with-env example (#8148) 2023-02-21 10:15:35 +00:00
nu-engine use the tools from pipeline_data.rs to print true tables 2023-02-24 10:24:53 +01:00
nu-explore Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-glob Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-json Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-parser Bare word improvements (#8066) 2023-02-16 02:30:56 +00:00
nu-path Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-plugin Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-pretty-hex Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-protocol allow date grouping in group-by (#8084) 2023-02-15 19:10:55 +00:00
nu-system Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-table nu-table/ table --collapse style fix (#8041) 2023-02-16 19:32:07 +00:00
nu-term-grid Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu-test-support Move some from xxx commands to plugin (#7942) 2023-02-13 12:42:08 +00:00
nu-utils update colors in dark theme (#8090) 2023-02-16 06:59:26 -06:00
nu_plugin_custom_values Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu_plugin_example Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu_plugin_formats add usage for plugin commands (#8138) 2023-02-20 15:03:17 +00:00
nu_plugin_gstat Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu_plugin_inc Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
nu_plugin_python update nu_plugin_python due to signature changes (#8107) 2023-02-18 13:27:24 +00:00
nu_plugin_query Disable auto-benchmark harness for crates (#8057) 2023-02-12 22:22:00 +00:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.