nushell/crates/nu-std/std
Antoine Stevan 6481bf272c
REFACTOR: build help pages instead of printing them (#9253)
# Description
in order to write tests for the `std help` commands, as we currently
have in the Rust source base, we need to be able to manipulate the
output of the `std help` commands.

however, until now they've all been directly printing the help pages as
they go...

this PR tries to build the help pages and return them at the end instead
of printing them on the fly 👍

> **Note**
> this is quite a rewrite of the `help.nu` module 🤔 
> i think it might be best to either
> - look at the commits in order
> - test the changes by testing the commands in the REPL and comparing
them to their previous `std help` versions

# User-Facing Changes
```
$nothing
```

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

# After Submitting
```
$nothing
```
2023-05-26 11:22:51 +02:00
..
dirs.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00
dt.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00
help.nu REFACTOR: build help pages instead of printing them (#9253) 2023-05-26 11:22:51 +02:00
iter.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00
log.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00
mod.nu feat: (stdlib) add os record support to path add (#9238) 2023-05-26 09:24:53 +02:00
testing.nu refactor the lib.rs of nu-std after the new virtual files PR (#9289) 2023-05-25 22:43:07 +03:00
xml.nu Add virtual path abstraction layer (#9245) 2023-05-23 23:48:50 +03:00