Uses of Class
picocli.CommandLine.Help.ColorScheme
-
Packages that use CommandLine.Help.ColorScheme Package Description picocli -
-
Uses of CommandLine.Help.ColorScheme in picocli
Fields in picocli declared as CommandLine.Help.ColorScheme Modifier and Type Field Description protected CommandLine.Help.ColorSchemeCommandLine.Help.Layout. colorSchemeMethods in picocli that return CommandLine.Help.ColorScheme Modifier and Type Method Description CommandLine.Help.ColorSchemeCommandLine.Help.ColorScheme. applySystemProperties()Replaces colors and styles in this scheme with ones specified in system properties, and returns this scheme.CommandLine.Help.ColorSchemeCommandLine.Help. colorScheme()Returns theColorSchememodel that this Help was constructed with.CommandLine.Help.ColorSchemeCommandLine.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.ColorSchemeCommandLine.Help. defaultColorScheme(CommandLine.Help.Ansi ansi)Creates and returns a newCommandLine.Help.ColorSchemeinitialized with picocli default values: commands are bold, options and parameters use a yellow foreground, and option parameters use italic.CommandLine.Help.ColorSchemeCommandLine.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.ColorSchemeCommandLine.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.ColorSchemeCommandLine.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.Methods in picocli with parameters of type CommandLine.Help.ColorScheme Modifier and Type Method Description CommandLine.HelpCommandLine.IHelpFactory. create(CommandLine.Model.CommandSpec commandSpec, CommandLine.Help.ColorScheme colorScheme)Returns aHelpinstance to assist in rendering the usage help messageStringCommandLine. 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.static booleanCommandLine. printHelpIfRequested(List<CommandLine> parsedCommands, PrintStream out, PrintStream err, CommandLine.Help.ColorScheme colorScheme)Helper method that may be useful when processing the list ofCommandLineobjects that result from successfully parsing command line arguments.CommandLine.Help.Ansi.Text[][]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.Ansi.Text[][]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.voidCommandLine. usage(PrintStream out, CommandLine.Help.ColorScheme colorScheme)Prints a usage help message for the annotated command class to the specifiedPrintStream.voidCommandLine. usage(PrintWriter writer, CommandLine.Help.ColorScheme colorScheme)Similar toCommandLine.usage(PrintStream, Help.ColorScheme), but with the specifiedPrintWriterinstead of aPrintStream.static voidCommandLine. 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.ColorScheme Constructor Description Help(Object command, CommandLine.Help.ColorScheme colorScheme)Help(CommandLine.Model.CommandSpec commandSpec, CommandLine.Help.ColorScheme colorScheme)Constructs a newHelpinstance with the specified color scheme, initialized from annotatations 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.
-