Class CliSpec.Builder<CliFlagsT extends CliFlags>
java.lang.Object
org.apache.bookkeeper.tools.framework.CliSpec.Builder<CliFlagsT>
Builder to build a cli spec.
-
Method Summary
Modifier and TypeMethodDescriptionaddCommand(Command command) build()setCommandGroup(boolean enabled) withArgumentsUsage(String usage) withCategory(String category) withConsole(PrintStream console) withDescription(String description) withParent(String parent) withRunFunc(Function<CliFlagsT, Boolean> func) withTailer(String tailer)
-
Method Details
-
withCategory
-
withName
-
withParent
-
withUsage
-
withArgumentsUsage
-
withFlags
-
withDescription
-
addCommand
-
withTailer
-
withRunFunc
-
withConsole
-
setCommandGroup
-
build
-