Package | Description |
---|---|
org.apache.logging.log4j.core.tools.picocli |
Modifier and Type | Class and 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 | Field and Description |
---|---|
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.commandStyles |
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.optionParamStyles |
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.optionStyles |
List<CommandLine.Help.Ansi.IStyle> |
CommandLine.Help.ColorScheme.parameterStyles |
Modifier and Type | Method and 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 and Description |
---|---|
CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.commands(CommandLine.Help.Ansi.IStyle... styles)
Adds the specified styles to the registered styles for commands in this color scheme and returns this color scheme.
|
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 |
CommandLine.Help.ColorScheme.optionParams(CommandLine.Help.Ansi.IStyle... styles)
Adds the specified styles to the registered styles for option parameters in this color scheme and returns this color scheme.
|
CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.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 |
CommandLine.Help.ColorScheme.parameters(CommandLine.Help.Ansi.IStyle... styles)
Adds the specified styles to the registered styles for positional parameters in this color scheme and returns this color scheme.
|
Modifier and Type | Method and 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(Field field,
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 © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.