From 2ad68e3702fbb9377a61a7d5f090738df9412489 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:13:46 -0500 Subject: [PATCH] cleanup coreutils tagging (#12286) # Description Cleanup search terms and help usage to be consistent and include coreutils so people can easily find out which commands are coreutils. ![image](https://github.com/nushell/nushell/assets/343840/09b03b11-19ce-49ec-b0b5-9b8455d1b676) or ```nushell help commands | where usage =~ coreutils | reject params input_output ``` # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-command/src/filesystem/mktemp.rs | 2 +- crates/nu-command/src/filesystem/umv.rs | 2 +- crates/nu-command/src/system/uname.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nu-command/src/filesystem/mktemp.rs b/crates/nu-command/src/filesystem/mktemp.rs index 6355204fe3..ce2b305821 100644 --- a/crates/nu-command/src/filesystem/mktemp.rs +++ b/crates/nu-command/src/filesystem/mktemp.rs @@ -21,12 +21,12 @@ impl Command for Mktemp { fn search_terms(&self) -> Vec<&str> { vec![ - "coreutils", "create", "directory", "file", "folder", "temporary", + "coreutils", ] } diff --git a/crates/nu-command/src/filesystem/umv.rs b/crates/nu-command/src/filesystem/umv.rs index bf86fb575d..72a4662134 100644 --- a/crates/nu-command/src/filesystem/umv.rs +++ b/crates/nu-command/src/filesystem/umv.rs @@ -43,7 +43,7 @@ impl Command for UMv { } fn search_terms(&self) -> Vec<&str> { - vec!["move"] + vec!["move", "file", "files", "coreutils"] } fn signature(&self) -> nu_protocol::Signature { diff --git a/crates/nu-command/src/system/uname.rs b/crates/nu-command/src/system/uname.rs index 04d01cc693..ca576bd770 100644 --- a/crates/nu-command/src/system/uname.rs +++ b/crates/nu-command/src/system/uname.rs @@ -21,12 +21,12 @@ impl Command for UName { } fn usage(&self) -> &str { - "Print certain system information." + "Print certain system information using uutils/coreutils uname." } fn search_terms(&self) -> Vec<&str> { // add other terms? - vec!["system"] + vec!["system", "coreutils"] } fn run(