From f7f09292d6bc5be1cb8461b111bf8aed72dd047a Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Mon, 17 Mar 2025 20:22:01 +0800 Subject: [PATCH] Add category to pwd and banner commands (#15330) # Description Add category to `pwd` and `banner` commands, fix broken of command docs updating here: https://github.com/nushell/nushell.github.io/actions/runs/13884819349/job/38848104064#step:5:18 The error was caused by these two commands have no category --- crates/nu-std/std/prelude/mod.nu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-std/std/prelude/mod.nu b/crates/nu-std/std/prelude/mod.nu index 2080d3348e..84a2c9592a 100644 --- a/crates/nu-std/std/prelude/mod.nu +++ b/crates/nu-std/std/prelude/mod.nu @@ -1,6 +1,8 @@ use std/dt [datetime-diff, pretty-print-duration] # Print a banner for Nushell with information about the project +@category "default" +@search-terms "welcome" "startup" export def banner [ --short # Only show startup time ] { @@ -40,8 +42,9 @@ match (config use-colors) { } # Return the current working directory +@category "default" export def pwd [ - --physical (-P) # resolve symbolic links + --physical (-P) # Resolve symbolic links ] { if $physical { $env.PWD | path expand