Uses of Enum
picocli.CommandLine.Help.Ansi
Packages that use CommandLine.Help.Ansi
Package
Description
Provides classes and interfaces for the main picocli command line parsing and
autocompletion
functionality.-
Uses of CommandLine.Help.Ansi in picocli
Methods in picocli that return CommandLine.Help.AnsiModifier and TypeMethodDescriptionCommandLine.AbstractHandler.ansi()
Deprecated.CommandLine.Help.ansi()
Returns whether ANSI escape codes are enabled or not.CommandLine.Help.ColorScheme.ansi()
Returns theAnsi
setting of this color scheme.CommandLine.Help.ColorScheme.Builder.ansi()
Returns theAnsi
setting of this color scheme builder.static CommandLine.Help.Ansi
CommandLine.Help.Ansi.valueOf
(boolean enabled) Returns Ansi.ON if the specifiedenabled
flag is true, Ansi.OFF otherwise.static CommandLine.Help.Ansi
Returns the enum constant of this type with the specified name.static CommandLine.Help.Ansi[]
CommandLine.Help.Ansi.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in picocli with parameters of type CommandLine.Help.AnsiModifier and TypeMethodDescriptionCommandLine.Help.ColorScheme.Builder.ansi
(CommandLine.Help.Ansi ansi) Set theAnsi
setting of this color scheme builder.static <C extends Callable<T>,
T>
TCommandLine.call
(C callable, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic <C extends Callable<T>,
T>
TCommandLine.call
(C callable, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic <C extends Callable<T>,
T>
TCommandLine.call
(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic <C extends Callable<T>,
T>
TCommandLine.call
(Class<C> callableClass, CommandLine.IFactory factory, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic 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.static CommandLine.Help.TextTable
CommandLine.Help.TextTable.forColumns
(CommandLine.Help.Ansi ansi, CommandLine.Help.Column... columns) Deprecated.static CommandLine.Help.TextTable
CommandLine.Help.TextTable.forColumnWidths
(CommandLine.Help.Ansi ansi, int... columnWidths) Deprecated.static CommandLine.Help.TextTable
CommandLine.Help.TextTable.forDefaultColumns
(CommandLine.Help.Ansi ansi, int usageHelpWidth) Deprecated.static CommandLine.Help.TextTable
CommandLine.Help.TextTable.forDefaultColumns
(CommandLine.Help.Ansi ansi, int longOptionsColumnWidth, int usageHelpWidth) Deprecated.CommandLine.getUsageMessage
(CommandLine.Help.Ansi ansi) Similar toCommandLine.usage(PrintStream, Help.Ansi)
, but returns the usage help message as a String instead of printing it to thePrintStream
.CommandLine.DefaultExceptionHandler.handleException
(CommandLine.ParameterException ex, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.CommandLine.IExceptionHandler.handleException
(CommandLine.ParameterException ex, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.Handles aParameterException
that occurred while parsing the command line arguments and optionally returns a list of results.CommandLine.IParseResultHandler.handleParseResult
(List<CommandLine> parsedCommands, PrintStream out, CommandLine.Help.Ansi ansi) Deprecated.Processes a List ofCommandLine
objects resulting from successfully parsing the command line arguments and optionally returns a list of results.CommandLine.RunAll.handleParseResult
(List<CommandLine> parsedCommands, PrintStream out, CommandLine.Help.Ansi ansi) Prints help if requested, and otherwise executes the top-level command and all subcommands asRunnable
,Callable
orMethod
.CommandLine.RunFirst.handleParseResult
(List<CommandLine> parsedCommands, PrintStream out, CommandLine.Help.Ansi ansi) Prints help if requested, and otherwise executes the top-levelRunnable
orCallable
command.CommandLine.RunLast.handleParseResult
(List<CommandLine> parsedCommands, PrintStream out, CommandLine.Help.Ansi ansi) Prints help if requested, and otherwise executes the most specificRunnable
orCallable
subcommand.void
CommandLine.HelpCommand.init
(CommandLine helpCommandLine, CommandLine.Help.Ansi ansi, PrintStream out, PrintStream err) Deprecated.void
CommandLine.IHelpCommandInitializable.init
(CommandLine helpCommandLine, CommandLine.Help.Ansi ansi, PrintStream out, PrintStream err) Deprecated.static Object
CommandLine.invoke
(String methodName, Class<?> cls, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic Object
CommandLine.invoke
(String methodName, Class<?> cls, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic StringBuilder
CommandLine.Help.join
(CommandLine.Help.Ansi ansi, int usageHelpWidth, boolean adjustCJK, String[] values, StringBuilder sb, Object... params) Formats each of the specified values and appends it to the specified StringBuilder.static StringBuilder
CommandLine.Help.join
(CommandLine.Help.Ansi ansi, int usageHelpWidth, String[] values, StringBuilder sb, Object... params) Deprecated.CommandLine.parseWithHandlers
(CommandLine.IParseResultHandler handler, PrintStream out, CommandLine.Help.Ansi ansi, CommandLine.IExceptionHandler exceptionHandler, String... args) Deprecated.useCommandLine.execute(String...)
andCommandLine.getExecutionResult()
insteadstatic boolean
CommandLine.printHelpIfRequested
(List<CommandLine> parsedCommands, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi) Deprecated.useCommandLine.executeHelpRequest(ParseResult)
insteadstatic boolean
CommandLine.printHelpIfRequested
(List<CommandLine> parsedCommands, PrintStream out, CommandLine.Help.Ansi ansi) Deprecated.useCommandLine.printHelpIfRequested(ParseResult)
insteadvoid
CommandLine.printVersionHelp
(PrintStream out, CommandLine.Help.Ansi ansi) Prints version information from theCommandLine.Command.version()
annotation to the specifiedPrintStream
.void
CommandLine.printVersionHelp
(PrintStream out, CommandLine.Help.Ansi ansi, Object... params) Prints version information from theCommandLine.Command.version()
annotation to the specifiedPrintStream
.void
CommandLine.printVersionHelp
(PrintWriter out, CommandLine.Help.Ansi ansi, Object... params) Prints version information from theCommandLine.Command.version()
annotation to the specifiedPrintWriter
.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.static <R extends Runnable>
voidCommandLine.run
(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
insteadstatic <R extends Runnable>
voidCommandLine.run
(Class<R> runnableClass, CommandLine.IFactory factory, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
insteadstatic <R extends Runnable>
voidCommandLine.run
(R runnable, PrintStream out, PrintStream err, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
insteadstatic <R extends Runnable>
voidCommandLine.run
(R runnable, PrintStream out, CommandLine.Help.Ansi ansi, String... args) Deprecated.useCommandLine.execute(String...)
insteadvoid
CommandLine.usage
(PrintStream out, CommandLine.Help.Ansi ansi) Delegates toCommandLine.usage(PrintStream, Help.ColorScheme)
with the default color scheme.void
CommandLine.usage
(PrintWriter writer, CommandLine.Help.Ansi ansi) Similar toCommandLine.usage(PrintStream, Help.Ansi)
but with the specifiedPrintWriter
instead of aPrintStream
.static void
CommandLine.usage
(Object command, PrintStream out, CommandLine.Help.Ansi ansi) Equivalent tonew CommandLine(command).usage(out, ansi)
.CommandLine.AbstractHandler.useAnsi
(CommandLine.Help.Ansi ansi) Deprecated.Constructors in picocli with parameters of type CommandLine.Help.AnsiModifierConstructorDescriptionBuilder
(CommandLine.Help.Ansi ansi) Constructs an empty color scheme builder with the specified Ansi value.Help
(Object command, CommandLine.Help.Ansi ansi) Constructs a newHelp
instance with a default color scheme, initialized from annotations on the specified class and superclasses.protected
TextTable
(CommandLine.Help.Ansi ansi, CommandLine.Help.Column[] columns) Deprecated.
CommandLine.AbstractHandler.colorScheme()
instead