nushell/crates
Kamil df15fc24fe
Logger constants refactored, format argument added, better formatting of failed (non) equality assertions (#9315)
# Description
I have (hopefully) simplified the `log.nu` internal structure and added
customizable log format for all `log` commands

# User-Facing Changes
- [x] Replaced constants with env records for: 
    - ansi (newly added)
    - log level
    - prefix
    - short prefix
- [x] Added `format` argument to all log commands
- [x] Assertions for (not) equality (equal, not equal, greater,
lesser...) now put left and right values inside `'` quotes, so the
assertions for strings are more meaningful
- [x] Documented the %-formatting of log messages

# Tests + Formatting
<!--
Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect -A clippy::result_large_err` to check that
you're using the standard code style
- `cargo test --workspace` to check that all tests pass
- `cargo run -- crates/nu-std/tests/run.nu` to run the tests for the
standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->

---------

Co-authored-by: amtoine <stevan.antoine@gmail.com>
2023-06-04 10:43:40 +02:00
..
nu_plugin_custom_values update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_example bump nushell from release version to development version (#9215) 2023-05-17 07:59:01 -05:00
nu_plugin_formats update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_gstat update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_inc update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu_plugin_python update nu_plugin_python due to signature changes (#8107) 2023-02-18 13:27:24 +00:00
nu_plugin_query update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-cli restore cursor shape when exits (#9314) 2023-05-30 09:38:45 -05:00
nu-cmd-dataframe Add a datepart expression for dfr to be used with dfr with-column (#9285) 2023-05-30 09:41:18 -05:00
nu-cmd-extra nu-cmd-extra crate infrastructure in place with the Bits command as the model for adding other commands (#9327) 2023-06-01 10:46:16 -07:00
nu-cmd-lang use "search_result" style to colorize matching strings (fixes #9275) (#9326) 2023-06-01 15:51:18 -05:00
nu-color-config use "search_result" style to colorize matching strings (fixes #9275) (#9326) 2023-06-01 15:51:18 -05:00
nu-command fix is-admin example (#9350) 2023-06-03 15:11:14 -05:00
nu-engine remove unused dependencies (#9230) 2023-05-18 11:37:20 -05:00
nu-explore nu-explore/ Fix recursive table issue; (#9321) 2023-05-30 09:59:56 -05:00
nu-glob Cut down on unnecessary parsing for SyntaxShape::Any (#9280) 2023-05-25 07:53:57 +12:00
nu-json update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-parser fix conflict between filesize and hexadecimal numbers (#9309) 2023-05-28 12:56:58 +02:00
nu-path update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-plugin update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-pretty-hex update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-protocol make insert, update, upsert support lazy records (#9323) 2023-05-31 06:27:55 -05:00
nu-std Logger constants refactored, format argument added, better formatting of failed (non) equality assertions (#9315) 2023-06-04 10:43:40 +02:00
nu-system update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-table update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-term-grid update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-test-support update most dependencies except where deeper code changes are needed (#9296) 2023-05-26 10:32:48 -05:00
nu-utils use "search_result" style to colorize matching strings (fixes #9275) (#9326) 2023-06-01 15:51:18 -05: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.