diff options
author | Douglas <32344964+NotTheDr01ds@users.noreply.github.com> | 2024-09-23 08:55:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 07:55:58 -0500 |
commit | 6f47990a6325f530db543198e51154f99d7a4bcb (patch) | |
tree | c988873ca85b5e319b61957b98d0008c2c8efcc3 | |
parent | 183c2221bbe7a997a7c7ff2638b584f3c2d39f58 (diff) |
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
-rw-r--r-- | crates/nu-command/src/conversions/into/value.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/nu-command/src/conversions/into/value.rs b/crates/nu-command/src/conversions/into/value.rs index cd919ca8d..52e5ab339 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<Example> { |