From 6f47990a6325f530db543198e51154f99d7a4bcb Mon Sep 17 00:00:00 2001 From: Douglas <32344964+NotTheDr01ds@users.noreply.github.com> Date: Mon, 23 Sep 2024 08:55:58 -0400 Subject: [PATCH] Add search terms to `into value` (#13890) # Description From [Discord today](https://discord.com/channels/601130461678272522/729071784321876040/1286904159047778316), `into value` isn't classified with `conversions` like the other `into ...` subcommands. I think this is correct, since it's a `table->table` operation, so it's a filter that has the side effect of (potentially) converting (via inference) cell values. But we should at least have some search terms that help here, so this PR adds *"conversion"* and *"convert"* to the command. # User-Facing Changes `help -f conversion` will return `into value` # Tests + Formatting - :green_circle: `toolkit fmt` - :green_circle: `toolkit clippy` - :green_circle: `toolkit test` - :green_circle: `toolkit test stdlib` # After Submitting N/A --- crates/nu-command/src/conversions/into/value.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/src/conversions/into/value.rs b/crates/nu-command/src/conversions/into/value.rs index cd919ca8d6..52e5ab339c 100644 --- a/crates/nu-command/src/conversions/into/value.rs +++ b/crates/nu-command/src/conversions/into/value.rs @@ -32,7 +32,11 @@ impl Command for IntoValue { } fn description(&self) -> &str { - "Infer nushell datatype for each cell." + "Infer Nushell datatype for each cell." + } + + fn search_terms(&self) -> Vec<&str> { + vec!["convert", "conversion"] } fn examples(&self) -> Vec {