nushell/crates
Ian Manske cf9813cbf8
Refactor lines command (#11685)
# Description
This PR uses `str::lines` to simplify the `lines` command (and one other
section of code). This has two main benefits:
1. We no longer need to use regex to split on lines, as `str::lines`
splits on `\r\n` or `\n`.
2. We no longer need to handle blank empty lines at the end. E.g.,
`str::lines` results in `["text"]` for both `"test\n"` and `"text"`.

These changes give a slight boost to performance for the following
benchmarks:
1. lines of `Value::String`:
    ```nushell
    let data = open Cargo.lock
    1..10000 | each { $data | timeit { lines } } | math avg 
    ```
    current main: 392µs
    this PR: 270µs
2. lines of external stream:
    ```nushell
    1..10000 | each { open Cargo.lock | timeit { lines } } | math avg 
    ```
    current main: 794µs
    this PR: 489µs
2024-01-30 15:56:19 -06:00
..
nu-cli add match-text style + config setting for ide menu (#11670) 2024-01-29 09:59:01 -06:00
nu-cmd-base Unify glob behavior on open, rm, cp-old, mv, umv, cp and du commands (#11621) 2024-01-26 21:57:35 +08:00
nu-cmd-dataframe "[11611] fixing dataframe column comparisons" (#11676) 2024-01-29 17:28:12 -06:00
nu-cmd-extra update nu-ansi-term to 0.50, lscolors to 0.17, and add the Style attribute to Suggestion (#11635) 2024-01-24 20:57:15 -08:00
nu-cmd-lang update nu-ansi-term to 0.50, lscolors to 0.17, and add the Style attribute to Suggestion (#11635) 2024-01-24 20:57:15 -08:00
nu-color-config update nu-ansi-term to 0.50, lscolors to 0.17, and add the Style attribute to Suggestion (#11635) 2024-01-24 20:57:15 -08:00
nu-command Refactor lines command (#11685) 2024-01-30 15:56:19 -06:00
nu-engine add $.extra_usage to modules (#11649) 2024-01-27 17:49:21 +02:00
nu-explore update nu-ansi-term to 0.50, lscolors to 0.17, and add the Style attribute to Suggestion (#11635) 2024-01-24 20:57:15 -08:00
nu-glob Bump to dev version 0.89.1 (#11513) 2024-01-11 00:19:21 +13:00
nu-json Refactor lines command (#11685) 2024-01-30 15:56:19 -06:00
nu-lsp Fix "Char index out of bounds" Error (#11526) 2024-01-11 15:24:49 -06:00
nu-parser Respect SyntaxShape when parsing spread operator (#11674) 2024-01-30 13:49:42 +08:00
nu-path Bump to dev version 0.89.1 (#11513) 2024-01-11 00:19:21 +13:00
nu-plugin Plugin explicit flags (#11581) 2024-01-22 15:00:43 -06:00
nu-pretty-hex update nu-ansi-term to 0.50, lscolors to 0.17, and add the Style attribute to Suggestion (#11635) 2024-01-24 20:57:15 -08:00
nu-protocol fix exit_code handling when running a scripts with ctrlc (#11466) 2024-01-30 22:41:14 +08:00
nu-std cleanup hide testing PR (#11638) 2024-01-25 06:49:04 -06:00
nu-system Fix tarpaulin skip attribute to latest (#11552) 2024-01-17 07:26:34 -06:00
nu-table update nu-ansi-term to 0.50, lscolors to 0.17, and add the Style attribute to Suggestion (#11635) 2024-01-24 20:57:15 -08:00
nu-term-grid Bump to dev version 0.89.1 (#11513) 2024-01-11 00:19:21 +13:00
nu-test-support Remove duplicate which 4.4.2 (#11613) 2024-01-22 09:28:47 -06:00
nu-utils add match-text style + config setting for ide menu (#11670) 2024-01-29 09:59:01 -06:00
nu_plugin_custom_values Allow plugins to receive configuration from the nushell configuration (#10955) 2024-01-15 16:59:47 +08:00
nu_plugin_example Plugin explicit flags (#11581) 2024-01-22 15:00:43 -06:00
nu_plugin_formats Bump ical from 0.9.0 to 0.10.0 (#11661) 2024-01-29 09:34:06 +08:00
nu_plugin_gstat Allow plugins to receive configuration from the nushell configuration (#10955) 2024-01-15 16:59:47 +08:00
nu_plugin_inc Plugin explicit flags (#11581) 2024-01-22 15:00:43 -06:00
nu_plugin_python remove vectorize_over_list from python plugin (#9905) 2023-08-03 16:46:48 +02:00
nu_plugin_query Plugin explicit flags (#11581) 2024-01-22 15:00:43 -06: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.