Class CliSpec.Builder<CliFlagsT extends CliFlags>
- java.lang.Object
-
- org.apache.bookkeeper.tools.framework.CliSpec.Builder<CliFlagsT>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CliSpec.Builder<CliFlagsT>
addCommand(Command command)
CliSpec<CliFlagsT>
build()
CliSpec.Builder<CliFlagsT>
setCommandGroup(boolean enabled)
CliSpec.Builder<CliFlagsT>
withArgumentsUsage(java.lang.String usage)
CliSpec.Builder<CliFlagsT>
withCategory(java.lang.String category)
CliSpec.Builder<CliFlagsT>
withConsole(java.io.PrintStream console)
CliSpec.Builder<CliFlagsT>
withDescription(java.lang.String description)
CliSpec.Builder<CliFlagsT>
withFlags(CliFlagsT flags)
CliSpec.Builder<CliFlagsT>
withName(java.lang.String name)
CliSpec.Builder<CliFlagsT>
withParent(java.lang.String parent)
CliSpec.Builder<CliFlagsT>
withRunFunc(java.util.function.Function<CliFlagsT,java.lang.Boolean> func)
CliSpec.Builder<CliFlagsT>
withTailer(java.lang.String tailer)
CliSpec.Builder<CliFlagsT>
withUsage(java.lang.String usage)
-
-
-
Method Detail
-
withCategory
public CliSpec.Builder<CliFlagsT> withCategory(java.lang.String category)
-
withName
public CliSpec.Builder<CliFlagsT> withName(java.lang.String name)
-
withParent
public CliSpec.Builder<CliFlagsT> withParent(java.lang.String parent)
-
withUsage
public CliSpec.Builder<CliFlagsT> withUsage(java.lang.String usage)
-
withArgumentsUsage
public CliSpec.Builder<CliFlagsT> withArgumentsUsage(java.lang.String usage)
-
withFlags
public CliSpec.Builder<CliFlagsT> withFlags(CliFlagsT flags)
-
withDescription
public CliSpec.Builder<CliFlagsT> withDescription(java.lang.String description)
-
addCommand
public CliSpec.Builder<CliFlagsT> addCommand(Command command)
-
withTailer
public CliSpec.Builder<CliFlagsT> withTailer(java.lang.String tailer)
-
withRunFunc
public CliSpec.Builder<CliFlagsT> withRunFunc(java.util.function.Function<CliFlagsT,java.lang.Boolean> func)
-
withConsole
public CliSpec.Builder<CliFlagsT> withConsole(java.io.PrintStream console)
-
setCommandGroup
public CliSpec.Builder<CliFlagsT> setCommandGroup(boolean enabled)
-
-