Package | Description |
---|---|
org.apache.logging.log4j.core.tools.picocli |
Modifier and Type | Field and Description |
---|---|
(package private) CommandLine.Help.ColorScheme |
CommandLine.Help.colorScheme |
protected CommandLine.Help.ColorScheme |
CommandLine.Help.Layout.colorScheme |
Modifier and Type | Method and Description |
---|---|
private CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.addAll(java.util.List<CommandLine.Help.Ansi.IStyle> styles,
CommandLine.Help.Ansi.IStyle... add) |
CommandLine.Help.ColorScheme |
CommandLine.Help.ColorScheme.applySystemProperties()
Replaces colors and styles in this scheme with ones specified in system properties, and returns this scheme.
|
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 CommandLine.Help.ColorScheme |
CommandLine.Help.defaultColorScheme(CommandLine.Help.Ansi ansi)
Creates and returns a new
CommandLine.Help.ColorScheme initialized with picocli default values: commands are bold,
options and parameters use a yellow foreground, and option parameters use italic. |
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 |
---|---|
private CommandLine.Help.Ansi.Text |
CommandLine.Help.DefaultOptionRenderer.createLongOptionText(java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer renderer,
CommandLine.Help.ColorScheme scheme,
java.lang.String longOption) |
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IOptionRenderer.render(CommandLine.Option option,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme)
Returns a text representation of the specified Option and the Field that captures the option value.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.DefaultOptionRenderer.render(CommandLine.Option option,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer paramLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.MinimalOptionRenderer.render(CommandLine.Option option,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.MinimalParameterRenderer.render(CommandLine.Parameters param,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IParameterRenderer.render(CommandLine.Parameters parameters,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme)
Returns a text representation of the specified Parameters and the Field that captures the parameter values.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.DefaultParameterRenderer.render(CommandLine.Parameters params,
java.lang.reflect.Field field,
CommandLine.Help.IParamLabelRenderer paramLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
private CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.DefaultOptionRenderer.renderDescriptionLines(CommandLine.Option option,
CommandLine.Help.ColorScheme scheme,
java.lang.String requiredOption,
java.lang.String shortOption,
CommandLine.Help.Ansi.Text longOptionText,
java.lang.Object defaultValue) |
static void |
CommandLine.usage(java.lang.Object command,
java.io.PrintStream out,
CommandLine.Help.ColorScheme colorScheme)
Equivalent to
new CommandLine(command).usage(out, colorScheme) . |
void |
CommandLine.usage(java.io.PrintStream out,
CommandLine.Help.ColorScheme colorScheme)
Prints a usage help message for the annotated command class to the specified
PrintStream . |
Constructor and Description |
---|
Help(java.lang.Object command,
CommandLine.Help.ColorScheme colorScheme)
Constructs a new
Help instance with the specified color scheme, initialized from annotatations
on the specified class and superclasses. |
Layout(CommandLine.Help.ColorScheme colorScheme)
Constructs a Layout with the specified color scheme, a new default TextTable, the
default option renderer, and the
default parameter renderer.
|
Layout(CommandLine.Help.ColorScheme colorScheme,
CommandLine.Help.TextTable textTable)
Constructs a Layout with the specified color scheme, the specified TextTable, the
default option renderer, and the
default parameter renderer.
|
Layout(CommandLine.Help.ColorScheme colorScheme,
CommandLine.Help.TextTable textTable,
CommandLine.Help.IOptionRenderer optionRenderer,
CommandLine.Help.IParameterRenderer parameterRenderer)
Constructs a Layout with the specified color scheme, the specified TextTable, the
specified option renderer and the specified parameter renderer.
|