public class GlobalMetadata<T> extends Object
| Constructor and Description |
|---|
GlobalMetadata(String name,
String description,
Iterable<OptionMetadata> options,
CommandMetadata defaultCommand,
Iterable<CommandMetadata> defaultGroupCommands,
Iterable<CommandGroupMetadata> commandGroups,
Iterable<GlobalRestriction> restrictions,
Iterable<HelpSection> baseHelpSections,
ParserMetadata<T> parserConfig) |
| Modifier and Type | Method and Description |
|---|---|
List<HelpSection> |
getBaseHelpSections()
Gets the base help sections used by all commands unless specifically
overridden by individual commands
|
List<CommandGroupMetadata> |
getCommandGroups()
Gets the command groups for the CLI
|
CommandMetadata |
getDefaultCommand()
Gets the default command for the CLI
|
List<CommandMetadata> |
getDefaultGroupCommands()
Gets the default group of commands for the CLI i.e.
|
String |
getDescription()
Gets the description of the CLI
|
String |
getName()
Gets the name of the CLI
|
List<OptionMetadata> |
getOptions()
Gets the global scoped options
|
ParserMetadata<T> |
getParserConfiguration()
Gets the parser configuration for the CLI
|
List<GlobalRestriction> |
getRestrictions()
Gets the global restrictions
|
String |
toString() |
public GlobalMetadata(String name, String description, Iterable<OptionMetadata> options, CommandMetadata defaultCommand, Iterable<CommandMetadata> defaultGroupCommands, Iterable<CommandGroupMetadata> commandGroups, Iterable<GlobalRestriction> restrictions, Iterable<HelpSection> baseHelpSections, ParserMetadata<T> parserConfig)
public String getName()
public String getDescription()
public List<OptionMetadata> getOptions()
public CommandMetadata getDefaultCommand()
public List<CommandMetadata> getDefaultGroupCommands()
public List<CommandGroupMetadata> getCommandGroups()
public List<GlobalRestriction> getRestrictions()
public List<HelpSection> getBaseHelpSections()
public ParserMetadata<T> getParserConfiguration()
Copyright © 2012–2022. All rights reserved.