Modifier and Type | Class | Description |
---|---|---|
static class |
CommandLine.Help.Ansi.Style |
A set of pre-defined ANSI escape code styles and colors, and a set of convenience methods for parsing
text with embedded markup style names, as well as convenience methods for converting
styles to strings with embedded escape codes.
|
Modifier and Type | Method | Description |
---|---|---|
static CommandLine.Help.Ansi.IStyle |
CommandLine.Help.Ansi.Style.bg(String str) |
Parses the specified style markup and returns the associated style.
|
static CommandLine.Help.Ansi.IStyle |
CommandLine.Help.Ansi.Style.fg(String str) |
Parses the specified style markup and returns the associated style.
|
static CommandLine.Help.Ansi.IStyle[] |
CommandLine.Help.Ansi.Style.parse(String commaSeparatedCodes) |
Parses the specified comma-separated sequence of style descriptors and returns the associated
styles.
|
Modifier and Type | Method | Description |
---|---|---|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.Builder.commandStyles() |
Returns the registered styles for commands in this color scheme builder.
|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.commandStyles() |
Returns the registered styles for commands in this color scheme.
|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.Builder.optionParamStyles() |
Returns the registered styles for option parameters in this color scheme builder.
|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.optionParamStyles() |
Returns the registered styles for option parameters in this color scheme.
|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.Builder.optionStyles() |
Returns the registered styles for options in this color scheme builder.
|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.optionStyles() |
Returns the registered styles for options in this color scheme.
|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.Builder.parameterStyles() |
Returns the registered styles for positional parameters in this color scheme builder.
|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.parameterStyles() |
Returns the registered styles for positional parameters in this color scheme.
|
Modifier and Type | Method | Description |
---|---|---|
CommandLine.Help.ColorScheme.Builder |
CommandLine.Help.ColorScheme.Builder.commands(CommandLine.Help.Ansi.IStyle... styles) |
Adds the specified styles to the registered styles for commands in this color scheme builder and returns this builder.
|
static String |
CommandLine.Help.Ansi.Style.off(CommandLine.Help.Ansi.IStyle... styles) |
Returns the concatenated ANSI escape codes for turning all specified styles off.
|
static String |
CommandLine.Help.Ansi.Style.on(CommandLine.Help.Ansi.IStyle... styles) |
Returns the concatenated ANSI escape codes for turning all specified styles on.
|
CommandLine.Help.ColorScheme.Builder |
CommandLine.Help.ColorScheme.Builder.optionParams(CommandLine.Help.Ansi.IStyle... styles) |
Adds the specified styles to the registered styles for option parameters in this color scheme builder and returns this builder.
|
CommandLine.Help.ColorScheme.Builder |
CommandLine.Help.ColorScheme.Builder.options(CommandLine.Help.Ansi.IStyle... styles) |
Adds the specified styles to the registered styles for options in this color scheme and returns this color scheme.
|
CommandLine.Help.ColorScheme.Builder |
CommandLine.Help.ColorScheme.Builder.parameters(CommandLine.Help.Ansi.IStyle... styles) |
Adds the specified styles to the registered styles for positional parameters in this color scheme builder and returns this builder.
|
Modifier and Type | Method | Description |
---|---|---|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.apply(String plainText,
List<CommandLine.Help.Ansi.IStyle> styles) |
Returns a new Text object where all the specified styles are applied to the full length of the
specified plain text.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.IParamLabelRenderer.renderParameterLabel(CommandLine.Model.ArgSpec argSpec,
CommandLine.Help.Ansi ansi,
List<CommandLine.Help.Ansi.IStyle> styles) |
Returns a text rendering of the option parameter or positional parameter; returns an empty string
"" if the option is a boolean and does not take a parameter. |
Copyright © 2017–2019. All rights reserved.