REFACTOR: build help pages instead of printing them#9253
Conversation
this commit does not feature the parameters and flags sections...
|
|
|
i'm a bit off with some newlines and minor format details, but i think it's ready for review 😌 if any reviewer find something off, i'll change it, that should only be small tweaks 😉 |
|
and after a quick test, it looks around as slow as before... (:laughing:) |
i've applied `%s/else \[\]/else { [] }` in *neovim* to replace
them all 👌
This should solve the merge conflicts in nushell#9253 introduced by nushell#9245.
|
i ping you for review if you want to have a look before merging 😉 i think it looks ok and should not introduce too many differences with the previous version. |
|
@amtoine What do I have to do to test it? I've tried |
i think jakub broke the prelude in this recent PRs 👀 you'd have to run or |
|
Thanks, that helped. Here's my feedback.
Did i miss anything? |
|
@fdncred one question though: the bad points above have been created with this PR or were there before? |
This PR. I only checked this PR compared to before this PR. |
perfect 👌 i'm having a look at the points above right now 😏 |
|
mm i'm a bit confused, all the points you list above look they were there before this PR 😕 i even feel they are tracked in the bounty for the most part 😮 looks to me we can merge this and address these one at a time next 😌 |
|
I think the problem is that PRs keep getting submitted that don't fix the issues so I end up reviewing PRs over and over again and each PR has the same issues. Maybe going forward we should fix the issues before fixing internal things like build vs print. I really don't want to look at several issues and decide whether I've asked for a fix for this particular thing or not before commenting on it. It makes it really difficult to review PRs that way. |
|
that's true 👍 but at the same time, this PR was meant to be a step forward to allow us write tests for the |
|
i'll continue working on stabilizing the |
Description
in order to write tests for the
std helpcommands, as we currently have in the Rust source base, we need to be able to manipulate the output of thestd helpcommands.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 👍
User-Facing Changes
Tests + Formatting
toolkit fmttoolkit clippytoolkit testtoolkit test stdlibAfter Submitting