Package io.airlift.airline
Class Cli.CliBuilder<C>
java.lang.Object
io.airlift.airline.Cli.CliBuilder<C>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandFactory<C> protected Stringprotected final Map<String, Cli.GroupBuilder<C>> protected final Stringprotected Stringprotected TypeConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withCommand(Class<? extends C> command) withCommandFactory(CommandFactory<C> commandFactory) final Cli.CliBuilder<C> withCommands(Class<? extends C> command, Class<? extends C>... moreCommands) withCommands(Iterable<Class<? extends C>> commands) withDefaultCommand(Class<? extends C> defaultCommand) withDescription(String description)
-
Field Details
-
name
-
description
-
typeConverter
-
optionSeparators
-
defaultCommand
-
defaultCommandGroupCommands
-
groups
-
commandFactory
-
-
Constructor Details
-
CliBuilder
-
-
Method Details
-
withDescription
-
withCommandFactory
-
withDefaultCommand
-
withCommand
-
withCommands
@SafeVarargs public final Cli.CliBuilder<C> withCommands(Class<? extends C> command, Class<? extends C>... moreCommands) -
withCommands
-
withGroup
-
build
-