nushell/tests/plugins
Devyn Cairns 992359a191
Support for custom values in plugin examples (#12213)
# Description
@ayax79 says that the dataframe commands all have dataframe custom
values in their examples, and they're used for tests.

Rather than send the custom values to the engine, if they're in
examples, this change just renders them using `to_base_value()` first.
That way we avoid potentially having to hold onto custom values in
`plugins.nu` that might not be valid indefinitely - as will be the case
for dataframes in particular - but we still avoid forcing plugin writers
to not use custom values in their examples.

# User-Facing Changes
- Custom values usable in plugin examples

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting
2024-03-18 07:34:21 -05:00
..
formats Correct line folding in from ics/from vcf (#10577) 2023-10-03 19:11:16 +02:00
config.rs Allow plugins to receive configuration from the nushell configuration (#10955) 2024-01-15 16:59:47 +08:00
core_inc.rs Plugin explicit flags (#11581) 2024-01-22 15:00:43 -06:00
custom_values.rs Support for custom values in plugin examples (#12213) 2024-03-18 07:34:21 -05:00
env.rs Allow plugins to set environment variables in their caller's scope (#12204) 2024-03-15 06:45:45 -05:00
mod.rs Add environment engine calls for plugins (#12166) 2024-03-12 06:34:32 -05:00
register.rs Show plugin extra usage and search terms (#10952) 2023-11-04 15:12:58 -05:00
stream.rs MsgPack deserializer: improve handling of EOF (#12183) 2024-03-13 06:49:53 -05:00