Class CliSpec<CliFlagsT extends CliFlags>
java.lang.Object
org.apache.bookkeeper.tools.framework.CliSpec<CliFlagsT>
A spec to build CLI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCliSpec.Builder<CliFlagsT extends CliFlags>Builder to build a cli spec. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancategory()commands()console()booleanflags()inthashCode()booleanname()static <T extends CliFlags>
CliSpec.Builder<T>Create a new builder to build the cli spec.static <T extends CliFlags>
CliSpec.Builder<T>newBuilder(CliSpec<T> spec) Create a new builder to build the cli spec from an existing spec.parent()runFunc()tailer()toString()usage()
-
Method Details
-
newBuilder
Create a new builder to build the cli spec.- Returns:
- a new builder to build the cli spec.
-
newBuilder
Create a new builder to build the cli spec from an existing spec.- Parameters:
spec- cli spec- Returns:
- a new builder to build the cli spec from an existing spec.
-
category
-
name
-
parent
-
usage
-
argumentsUsage
-
flags
-
description
-
commands
-
tailer
-
runFunc
-
console
-
isCommandGroup
public boolean isCommandGroup() -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-