nushell/crates/nu-std/lib
Antoine Stevan 6dc7ff2335
FEATURE: return tables with std help ... --find ... (#9040)
# Description
this PR makes `std help` commands return a table no matter the number of
matches when using `--find`.
as proposed by Darren, this would allow users to still rely on things
like
```nushell
let blah = (std help modules -f weather | get name)
```
even if there is a single match.

# User-Facing Changes
`std help ... --find ...` now returns a table as `help ... --find ...`

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
-  `toolkit test`
-  `toolkit test stdlib`

# After Submitting
```
$nothing
```
2023-05-05 18:06:48 +02:00
..
dirs.nu stdlib: refactor into a multi-module library (#8815) 2023-04-09 20:00:20 +03:00
help.nu FEATURE: return tables with std help ... --find ... (#9040) 2023-05-05 18:06:48 +02:00
iter.nu add filter-map command to std iter (#8926) 2023-04-19 19:09:10 +02:00
log.nu Added log custom command & exported log levels (#9055) 2023-05-04 18:30:15 +02:00
mod.nu pass std bench into table -e in the example (#9075) 2023-05-01 08:18:51 -05:00
testing.nu std run-tests: Rename --command switch to --test; and likewise in --list output (#8895) 2023-04-20 19:41:33 -05:00
xml.nu stdlib: refactor into a multi-module library (#8815) 2023-04-09 20:00:20 +03:00