clap.rs colored help menus for Julia launcher #1236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently the Julia help menu within juliaup is missing some of the juliaup-specific stuff, such as the
[+channel]
specifier. It also (1) lacks shell completions, (2) lacks colored output (makes it hard to read, especially with how long it has gotten), and (3) it cannot automatically wrap to terminal width.This PR adds a full clap.rs help menu for the julia launcher. This gives us:
--generate-completions <shell>
)This also adds three flags:
--help-raw
to access the raw Julia help menu (such as for core developers).--help-hidden-raw
equivalent but for--help-hidden
.--generate-completions
to generate completions for Julia using clap.rs.(This is forked from #1234; that one needs to be merged first in any case).
Here is the current julia launcher help menu on 1.12:
And here is it on a narrow terminal:
With this PR, it looks like this:
and in a narrow terminal: