@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface Cli
Modifier and Type | Required Element and Description |
---|---|
String |
name
Sets the name of the CLI i.e.
|
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
commands
Defines the classes that provide top-level commands for the CLI
|
Class<?> |
defaultCommand
Defines the class that provides the default command for the CLI
|
String |
description
Sets the description of the CLI
|
Group[] |
groups
Defines command groups for the CLI
|
boolean |
includeDefaultRestrictions
Sets whether the default global restrictions are applied
|
Parser |
parserConfiguration
Sets the parser configuration for the CLI
|
Class<? extends GlobalRestriction>[] |
restrictions
Defines the classes that provide global restrictions for the CLI
|
public abstract String name
public abstract String description
public abstract Parser parserConfiguration
public abstract Group[] groups
public abstract Class<?> defaultCommand
public abstract Class<?>[] commands
public abstract Class<? extends GlobalRestriction>[] restrictions
public abstract boolean includeDefaultRestrictions
Copyright © 2012–2017. All rights reserved.