mirror of
https://github.com/nushell/nushell.git
synced 2026-11-26 03:25:39 +08:00
## Description Now, instead of using hardcoded colors in `std help`, we retrieve them from `$env.config.color_config`. I did my best to match the keys to those of `help`, so that they would look somewhat similar when custom colors have been set. I also adjusted the padding so that there would be no places with two lines of padding or no padding in between two sections. (unrelated) While making this I noticed that the amount of indentation changes between each function. There are also some differences between the output of `std help` and `help` in terms of the sections we have and the way flags and stuff are rendered. While I did get them to match better, the diff became too large and it wouldn't at all have been in-scope for this PR, so I decided not to include them. ## User-facing changes (Release notes) `std help` now honors colors set in `color_config` and has the correct amount of padding. ## Additional notes Closes https://github.com/nushell/nushell/issues/12109