mirror of
https://github.com/nushell/nushell.git
synced 2025-02-02 03:30:16 +01:00
stdlib: fix the names of the help
commands in help.nu
(#9252)
related to the changes in - #9193 # Description when we change the namespace of a module, the internal calls to the `export`ed commands needs to be updated as well 👀 😆 without this, we have the following pretty error: ``` > std help ansi Error: × std::help::item_not_found ╭─[entry #1:1:1] 1 │ std help ansi · ──┬─ · ╰── item not found ╰──── ```
This commit is contained in:
parent
6564ed710d
commit
9b139330f8
@ -726,13 +726,13 @@ You can also learn more at (ansi default_italic)(ansi light_cyan_underline)https
|
||||
|
||||
let target_item = ($item | str join " ")
|
||||
|
||||
let commands = (try { help commands $target_item --find $find })
|
||||
let commands = (try { commands $target_item --find $find })
|
||||
if not ($commands | is-empty) { return $commands }
|
||||
|
||||
let aliases = (try { help aliases $target_item --find $find })
|
||||
let aliases = (try { aliases $target_item --find $find })
|
||||
if not ($aliases | is-empty) { return $aliases }
|
||||
|
||||
let modules = (try { help modules $target_item --find $find })
|
||||
let modules = (try { modules $target_item --find $find })
|
||||
if not ($modules | is-empty) { return $modules }
|
||||
|
||||
let span = (metadata $item | get span)
|
||||
|
Loading…
Reference in New Issue
Block a user