Feature: theming support for list of subcommand aliases #152
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.
This PR adds two new styles to
HelpTheme
which affects aGroup
subcommands definition list:alias
: color of a subcommand alias namesalias_secondary
: color of separator (comma) and parenthesis in subcommand alias lists.If
alias_secondary
is not provided,alias
style is used.This PR changes the dark theme so that aliases are shown in "yellow" (col1 is bright yellow) and
alias_secondary
is just normal white.Closes #151.
Old, previous iteration
This PR adds three styles to
HelpTheme
:alias
: color of aliasalias_list_sep
: color of alias separators (i.e. "," by default)alias_list_boundaries
: color of eventual characters "wrapping" the list of alias (i.e. parenthesis by default).The last two might not be specified. In such case:
col1
will be used foralias_list_sep
alias_list_sep
will be used for boundaries (i.e.alias_list_sep
orcol1
).Remember you can always use override
Command.format_subcommand_aliases
to customize how aliases are formatted.@wabiloo