Uses of Class
picocli.CommandLine.Help.ColorScheme
-
Uses of CommandLine.Help.ColorScheme in picocli
Fields in picocli declared as CommandLine.Help.ColorSchemeModifier and TypeFieldDescriptionprivate CommandLine.Help.ColorScheme
CommandLine.AbstractHandler.colorScheme
Deprecated.(package private) CommandLine.Help.ColorScheme
CommandLine.ColoredStackTraceWriter.colorScheme
private CommandLine.Help.ColorScheme
CommandLine.colorScheme
private CommandLine.Help.ColorScheme
CommandLine.Help.Ansi.Text.colorScheme
private final CommandLine.Help.ColorScheme
CommandLine.Help.colorScheme
protected final CommandLine.Help.ColorScheme
CommandLine.Help.Layout.colorScheme
private final CommandLine.Help.ColorScheme
CommandLine.Help.TextTable.colorScheme
private CommandLine.Help.ColorScheme
CommandLine.HelpCommand.colorScheme
Methods in picocli that return CommandLine.Help.ColorSchemeModifier and TypeMethodDescriptionCommandLine.Help.ColorScheme.Builder.build()
Creates and returns a newColorScheme
with the values configured on this builder.CommandLine.AbstractHandler.colorScheme()
Deprecated.Returns the ColorScheme to use.CommandLine.Help.colorScheme()
Returns theColorScheme
model that this Help was constructed with.CommandLine.Help.Layout.colorScheme()
Returns the ColorScheme used to create Text objects in this layout.static CommandLine.Help.ColorScheme
CommandLine.Help.defaultColorScheme
(CommandLine.Help.Ansi ansi) Creates and returns a newCommandLine.Help.ColorScheme
initialized with picocli default values: commands are bold, options and parameters use a yellow foreground, and option parameters use italic.CommandLine.getColorScheme()
Returns the color scheme to use when printing help.Methods in picocli with parameters of type CommandLine.Help.ColorSchemeModifier and TypeMethodDescriptionprivate static void
CommandLine.Help.addTrailingDefaultLine
(List<CommandLine.Help.Ansi.Text[]> result, CommandLine.Model.ArgSpec arg, CommandLine.Help.ColorScheme scheme) int
CommandLine.Help.calcLongOptionColumnWidth
(List<CommandLine.Model.OptionSpec> options, List<CommandLine.Model.PositionalParamSpec> positionals, CommandLine.Help.ColorScheme aColorScheme) Returns the width of the long options column in the usage help message.(package private) static CommandLine.Help.Ansi.Text
CommandLine.Help.concatOptionText
(String prefix, CommandLine.Help.Ansi.Text text, CommandLine.Help.ColorScheme colorScheme, CommandLine.Model.OptionSpec option, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer) private CommandLine.Help.Ansi.Text
CommandLine.Model.ArgGroupSpec.concatOptionText
(String prefix, CommandLine.Help.Ansi.Text text, CommandLine.Help.ColorScheme colorScheme, CommandLine.Model.OptionSpec option) (package private) static CommandLine.Help.Ansi.Text
CommandLine.Help.concatPositionalText
(String prefix, CommandLine.Help.Ansi.Text text, CommandLine.Help.ColorScheme colorScheme, CommandLine.Model.PositionalParamSpec positionalParam, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer) private CommandLine.Help.Ansi.Text
CommandLine.Model.ArgGroupSpec.concatPositionalText
(String prefix, CommandLine.Help.Ansi.Text text, CommandLine.Help.ColorScheme colorScheme, CommandLine.Model.PositionalParamSpec positionalParam) CommandLine.DefaultHelpFactory.create
(CommandLine.Model.CommandSpec commandSpec, CommandLine.Help.ColorScheme colorScheme) CommandLine.IHelpFactory.create
(CommandLine.Model.CommandSpec commandSpec, CommandLine.Help.ColorScheme colorScheme) Returns aHelp
instance to assist in rendering the usage help messageCommandLine.Help.createDefaultLayout
(List<CommandLine.Model.OptionSpec> options, List<CommandLine.Model.PositionalParamSpec> positionals, CommandLine.Help.ColorScheme aColorScheme) Returns aLayout
instance configured with the user preferences captured in this Help instance.private static CommandLine.Help.Ansi.Text[]
CommandLine.Help.createDescriptionFirstLines
(CommandLine.Help.ColorScheme scheme, CommandLine.Model.ArgSpec arg, String[] description, boolean[] showDefault) private CommandLine.Help.Layout
CommandLine.Help.createLayout
(int longOptionsColumnWidth, CommandLine.Help.ColorScheme aColorScheme) private CommandLine.Help.Ansi.Text
CommandLine.Help.DefaultOptionRenderer.createLongOptionText
(CommandLine.Model.OptionSpec option, CommandLine.Help.IParamLabelRenderer renderer, CommandLine.Help.ColorScheme scheme, String longOption) static CommandLine.Help.TextTable
CommandLine.Help.TextTable.forColumns
(CommandLine.Help.ColorScheme colorScheme, CommandLine.Help.Column... columns) Constructs aTextTable
with the specified columns.static CommandLine.Help.TextTable
CommandLine.Help.TextTable.forColumnWidths
(CommandLine.Help.ColorScheme colorScheme, int... columnWidths) Constructs a new TextTable with columns with the specified width, all SPANning multiple columns on overflow except the last column which WRAPS to the next row.static CommandLine.Help.TextTable
CommandLine.Help.TextTable.forDefaultColumns
(CommandLine.Help.ColorScheme colorScheme, int longOptionsColumnWidth, int usageHelpWidth) Constructs a TextTable with five columns as follows: required option/parameter marker (width: 2, indent: 0, TRUNCATE on overflow) short option name (width: 2, indent: 0, TRUNCATE on overflow) comma separator (width: 1, indent: 0, TRUNCATE on overflow) long option name(s) (width: 24, indent: 1, SPAN multiple columns on overflow) description line(s) (width: 51, indent: 1, WRAP to next row on overflow)CommandLine.getUsageMessage
(CommandLine.Help.ColorScheme colorScheme) Similar toCommandLine.usage(PrintStream, Help.ColorScheme)
, but returns the usage help message as a String instead of printing it to thePrintStream
.void
CommandLine.HelpCommand.init
(CommandLine helpCommandLine, CommandLine.Help.ColorScheme colorScheme, PrintWriter out, PrintWriter err) Initializes this object with the information needed to implement a help command that provides usage help for other commands.void
CommandLine.IHelpCommandInitializable2.init
(CommandLine helpCommandLine, CommandLine.Help.ColorScheme colorScheme, PrintWriter outWriter, PrintWriter errWriter) Initializes this object with the information needed to implement a help command that provides usage help for other commands.(package private) static void
CommandLine.DefaultExceptionHandler.internalHandleParseException
(CommandLine.ParameterException ex, PrintWriter writer, CommandLine.Help.ColorScheme colorScheme) Deprecated.static boolean
CommandLine.printHelpIfRequested
(List<CommandLine> parsedCommands, PrintStream out, PrintStream err, CommandLine.Help.ColorScheme colorScheme) Deprecated.private CommandLine.Help.Ansi.Text
CommandLine.Model.ArgGroupSpec.rawSynopsisUnitText
(CommandLine.Help.ColorScheme colorScheme, Set<CommandLine.Model.ArgSpec> outparam_groupArgs) CommandLine.Help.DefaultOptionRenderer.render
(CommandLine.Model.OptionSpec option, CommandLine.Help.IParamLabelRenderer paramLabelRenderer, CommandLine.Help.ColorScheme scheme) CommandLine.Help.DefaultParameterRenderer.render
(CommandLine.Model.PositionalParamSpec param, CommandLine.Help.IParamLabelRenderer paramLabelRenderer, CommandLine.Help.ColorScheme scheme) CommandLine.Help.IOptionRenderer.render
(CommandLine.Model.OptionSpec option, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer, CommandLine.Help.ColorScheme scheme) Returns a text representation of the specified option and its parameter(s) if any.CommandLine.Help.IParameterRenderer.render
(CommandLine.Model.PositionalParamSpec param, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer, CommandLine.Help.ColorScheme scheme) Returns a text representation of the specified positional parameter.CommandLine.Help.MinimalOptionRenderer.render
(CommandLine.Model.OptionSpec option, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer, CommandLine.Help.ColorScheme scheme) CommandLine.Help.MinimalParameterRenderer.render
(CommandLine.Model.PositionalParamSpec param, CommandLine.Help.IParamLabelRenderer parameterLabelRenderer, CommandLine.Help.ColorScheme scheme) private CommandLine.Help.Ansi.Text[][]
CommandLine.Help.DefaultOptionRenderer.renderDescriptionLines
(CommandLine.Model.OptionSpec option, CommandLine.Help.ColorScheme scheme, String requiredOption, String shortOption, CommandLine.Help.Ansi.Text longOptionText) CommandLine.setColorScheme
(CommandLine.Help.ColorScheme colorScheme) Sets the color scheme to use when printing help.CommandLine.Model.ArgGroupSpec.synopsisText
(CommandLine.Help.ColorScheme colorScheme, Set<CommandLine.Model.ArgSpec> outparam_groupArgs) Returns the synopsis of this group.private CommandLine.Help.Ansi.Text
CommandLine.Model.ArgGroupSpec.synopsisUnitText
(CommandLine.Help.ColorScheme colorScheme, CommandLine.Help.Ansi.Text synopsis) private static String
CommandLine.throwableToColorString
(Throwable t, CommandLine.Help.ColorScheme existingColorScheme) Convert aThrowable
to aString
, with message and stack traces extracted and colored according toColorScheme
.void
CommandLine.usage
(PrintStream out, CommandLine.Help.ColorScheme colorScheme) Prints a usage help message for the annotated command class to the specifiedPrintStream
.void
CommandLine.usage
(PrintWriter writer, CommandLine.Help.ColorScheme colorScheme) Similar toCommandLine.usage(PrintStream, Help.ColorScheme)
, but with the specifiedPrintWriter
instead of aPrintStream
.static void
CommandLine.usage
(Object command, PrintStream out, CommandLine.Help.ColorScheme colorScheme) Equivalent tonew CommandLine(command).usage(out, colorScheme)
.Constructors in picocli with parameters of type CommandLine.Help.ColorSchemeModifierConstructorDescriptionBuilder
(CommandLine.Help.ColorScheme existing) Constructs a color scheme builder with all attributes copied from the specified color scheme.ColoredStackTraceWriter
(CommandLine.Help.ColorScheme colorScheme) Help
(Object command, CommandLine.Help.ColorScheme colorScheme) Help
(CommandLine.Model.CommandSpec commandSpec, CommandLine.Help.ColorScheme colorScheme) Constructs a newHelp
instance with the specified color scheme, initialized from annotations on the specified class and superclasses.Layout
(CommandLine.Help.ColorScheme colorScheme, int tableWidth) 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.Text
(int maxLength, CommandLine.Help.ColorScheme colorScheme) Constructs a Text with the specified max length (for use in a TextTable Column).Text
(String input, CommandLine.Help.ColorScheme colorScheme) Constructs a Text with the specified String (which may contain markup), and ColorScheme.protected
TextTable
(CommandLine.Help.ColorScheme colorScheme, CommandLine.Help.Column[] columns)
CommandLine.executeHelpRequest(ParseResult)
instead